nl: adds a log event to the cache . if the number of events reach the capacity of the batch , they will be published . concode_field_sep String PUBLISH_THREAD_NAME concode_elem_sep String cacheName concode_elem_sep int eventQueueLength concode_elem_sep ExecutorService executorService concode_elem_sep Object EVENTQUEUELOCK concode_elem_sep Queue<LoggingEvent> eventQueue concode_elem_sep ICachePublisher cachePublisher concode_elem_sep int capacity concode_field_sep ExecutorService createExecutorService concode_elem_sep Future<Boolean> publishCache concode_elem_sep void publish concode_elem_sep PublishContext startPublish concode_elem_sep void flushAndPublishQueue concode_elem_sep void endPublish concode_elem_sep String getCacheName
code: void function ( LoggingEvent arg0 ) { boolean loc0 = false ; synchronized ( EVENTQUEUELOCK ) { if ( eventQueueLength < capacity ) { eventQueue . add ( arg0 ) ; eventQueueLength ++ ; } else { loc0 = true ; } } if ( loc0 ) { flushAndPublishQueue ( false ) ; } }