Пример #1
0
 @Override
 public void fireEvent(final Event event) {
   if (event instanceof ClockTick) {
     for (final TransactionState tx : TransactionState.outstanding.values()) {
       if (tx.isExpired()) {
         tx.cleanup();
         LOG.error("Found expired TxHandle: " + tx);
         LOG.error(tx.owner);
       }
     }
   }
 }
 @Override
 public void onWebSocketClose(int statusCode, String reason) {
   LOG.debug("onWebSocketClose({}, {})", statusCode, reason);
   this.closeStatusCode = statusCode;
   this.closeReason = reason;
   closeLatch.countDown();
 }