public void releaseEvent ( EventId eventId ) throws Exception { Lockable < V > eventWrapper = sharedBuffer . getEvent ( eventId ) ; if ( eventWrapper != null ) { if ( eventWrapper . release ( ) ) { sharedBuffer . removeEvent ( eventId ) ; } else { sharedBuffer . upsertEvent ( eventId , eventWrapper ) ; } } }
Decreases the reference counter for the given event so that it can be removed once the reference counter reaches 0 .