public void queue(String entity,String event,String key){
  if (broadcastEvents == null)   return;
  try {
    counter.incrementAndGet();
    broadcastEvents.putFirst(new BroadcastEvent(entity,event,key));
  }
 catch (  Exception e) {
    counter.decrementAndGet();
    logger.error("error putting BroadcastEvent",e);
  }
}

public void queue ( String entity , String event , String key ) { if ( broadcastEvents == null ) return ; try { counter . incrementAndGet ( ) ; broadcastEvents . putFirst ( new BroadcastEvent ( entity , event , key ) ) ; } catch ( Exception e ) { counter . decrementAndGet ( ) ; logger . error ( "error putting BroadcastEvent" , e ) ; } }
broadcast an event out
