private void sendToEventManager ( T item ) { if ( debug ) { logger . debug ( "EventBusQueueAdapter::sendToEventManager({})" , item ) ; } try { if ( lock . tryLock ( ) ) { eventManager . sendArguments ( channel , item ) ; } else { lock . lock ( ) ; eventManager . sendArguments ( channel , item ) ; } } finally { lock . unlock ( ) ; } }
Send the queue item to the event .