question: public ReplDBMSEvent poll ( ) throws InterruptedException { return queue . poll ( ) ; }
target:  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.