void flushCache ( ) throws Exception { if ( ! entryCache . isEmpty ( ) ) { entries . putAll ( entryCache ) ; entryCache . clear ( ) ; } if ( ! eventsBufferCache . isEmpty ( ) ) { eventsBuffer . putAll ( eventsBufferCache ) ; eventsBufferCache . clear ( ) ; } }
Flush the event and node from cache to state .