public boolean isEmpty ( ) throws Exception { return Iterables . isEmpty ( eventsBufferCache . keySet ( ) ) && Iterables . isEmpty ( eventsBuffer . keys ( ) ) ; }
Checks if there is no elements in the buffer .