public void addEvent ( E event ) { CompletableFuture < E > future = futures . poll ( ) ; if ( future != null ) { future . complete ( event ) ; } else { events . add ( event ) ; if ( events . size ( ) > 100 ) { events . remove ( ) ; } } }
Adds an event to the log .