@Override public synchronized void registerSession(final Session ssn) { super.registerSession(ssn); if (_blocking) { ((ServerSession) ssn).block(); } }
@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(); } }
@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(); } }
@Override protected void invoke(Method method) { super.invoke(method); }
public void doHeartbeat() { super.doHeartBeat(); }
@Override public void setLocalAddress(SocketAddress localAddress) { super.setLocalAddress(localAddress); }
@Override public void setRemoteAddress(SocketAddress remoteAddress) { super.setRemoteAddress(remoteAddress); }
@Override public void send(ProtocolEvent event) { _lastIoTime.set(System.currentTimeMillis()); super.send(event); }
@Override public void closed() { closeSubscriptions(); super.closed(); }
@Override public synchronized void removeSession(final Session ssn) { super.removeSession(ssn); }
public void setConnectionDelegate(ServerConnectionDelegate delegate) { super.setConnectionDelegate(delegate); }