public ReplDBMSEvent peek(){
  return queue.peek();
}

public ReplDBMSEvent peek ( ) { return queue . peek ( ) ; }
returns but does not remove next event from the queue if it exists or returns null if queue is empty .
