public ReplDBMSEvent poll() throws InterruptedException {
  return queue.poll();
}

public ReplDBMSEvent poll ( ) throws InterruptedException { return queue . poll ( ) ; }
removes and returns next event from the queue , returning null if empty . this method is used for unit testing , where it prevents cases from hanging if a queue is unexpectedly empty .
