Esempio n. 1
0
  @Override
  public void received(ProtocolEvent event) {
    _lastIoTime.set(System.currentTimeMillis());
    if (event.isConnectionControl()) {
      CurrentActor.set(_actor);
    } else {
      ServerSession channel = (ServerSession) getSession(event.getChannel());
      LogActor channelActor = null;

      if (channel != null) {
        channelActor = channel.getLogActor();
      }

      CurrentActor.set(channelActor == null ? _actor : channelActor);
    }

    try {
      super.received(event);
    } finally {
      CurrentActor.remove();
    }
  }