Code example for Queue

Methods: offer

0
    return eventQueue; 
  } 
 
  @Override 
  public void process(WatchedEvent event) { 
    eventQueue.offer(event); 
  } 
}