Пример #1
0
 @Override
 public synchronized void registerSession(final Session ssn) {
   super.registerSession(ssn);
   if (_blocking) {
     ((ServerSession) ssn).block();
   }
 }
Пример #2
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();
    }
  }
Пример #3
0
  @Override
  protected void setState(State state) {
    super.setState(state);

    if (state == State.OPEN) {
      if (_onOpenTask != null) {
        _onOpenTask.run();
      }
      _actor.message(
          ConnectionMessages.OPEN(getClientId(), "0-10", getClientVersion(), true, true, true));

      getVirtualHost().getConnectionRegistry().registerConnection(this);
    }

    if (state == State.CLOSE_RCVD || state == State.CLOSED || state == State.CLOSING) {
      if (_virtualHost != null) {
        _virtualHost.getConnectionRegistry().deregisterConnection(this);
      }
    }

    if (state == State.CLOSED) {
      logClosed();
    }
  }
Пример #4
0
 @Override
 protected void invoke(Method method) {
   super.invoke(method);
 }
Пример #5
0
 public void doHeartbeat() {
   super.doHeartBeat();
 }
Пример #6
0
 @Override
 public void setLocalAddress(SocketAddress localAddress) {
   super.setLocalAddress(localAddress);
 }
Пример #7
0
 @Override
 public void setRemoteAddress(SocketAddress remoteAddress) {
   super.setRemoteAddress(remoteAddress);
 }
Пример #8
0
 @Override
 public void send(ProtocolEvent event) {
   _lastIoTime.set(System.currentTimeMillis());
   super.send(event);
 }
Пример #9
0
 @Override
 public void closed() {
   closeSubscriptions();
   super.closed();
 }
Пример #10
0
 @Override
 public synchronized void removeSession(final Session ssn) {
   super.removeSession(ssn);
 }
Пример #11
0
 public void setConnectionDelegate(ServerConnectionDelegate delegate) {
   super.setConnectionDelegate(delegate);
 }