boolean (@NotNull E event, int priority) { if (LOG.isDebugEnabled()) { LOG.debug("put event " + event); } myLock.lock(); try { if (isClosed()) { return false; } getEventsList(priority).offer(event); myEventsAvailable.signalAll(); } finally { myLock.unlock(); } return true; }