public interface IoServiceEventListener extends SshdEventListener
| Modifier and Type | Method and Description |
|---|---|
default void |
abortAcceptedConnection(IoAcceptor acceptor,
SocketAddress local,
SocketAddress remote,
SocketAddress service,
Throwable reason)
Called when a previously accepted connection has been abnormally terminated before it could be turned into a
session
|
default void |
abortEstablishedConnection(IoConnector connector,
SocketAddress local,
AttributeRepository context,
SocketAddress remote,
Throwable reason)
Called when a previously established connection has been abnormally terminated before it could be turned into a
session
|
default void |
connectionAccepted(IoAcceptor acceptor,
SocketAddress local,
SocketAddress remote,
SocketAddress service)
Called when a new connection has been accepted from a remote peer - before it was converted into a session
|
default void |
connectionEstablished(IoConnector connector,
SocketAddress local,
AttributeRepository context,
SocketAddress remote)
Called when a new connection has been created to a remote peer - before it was converted into a session
|
validateListenerdefault void connectionEstablished(IoConnector connector, SocketAddress local, AttributeRepository context, SocketAddress remote) throws IOException
connector - The IoConnector through which the connection was establishedlocal - The local connection endpointcontext - An optional "context" provided by the user when connection was requestedremote - The remote connection endpointIOException - If failed to handle the event - in which case connection will be aborteddefault void abortEstablishedConnection(IoConnector connector, SocketAddress local, AttributeRepository context, SocketAddress remote, Throwable reason) throws IOException
connector - The IoConnector through which the connection was establishedlocal - The local connection endpointcontext - An optional "context" provided by the user when connection was requestedremote - The remote connection endpointreason - The reason for aborting - may be an exception thrown by
connectionEstablishedIOException - If failed to handle the event - the exception is logged but does not prevent further
connections from being accepteddefault void connectionAccepted(IoAcceptor acceptor, SocketAddress local, SocketAddress remote, SocketAddress service) throws IOException
acceptor - The IoAcceptor through which the connection was acceptedlocal - The local connection endpointremote - The remote connection endpointservice - The service listen endpoint through which the connection was acceptedIOException - If failed to handle the event - in which case connection will be aborteddefault void abortAcceptedConnection(IoAcceptor acceptor, SocketAddress local, SocketAddress remote, SocketAddress service, Throwable reason) throws IOException
acceptor - The IoAcceptor through which the connection was acceptedlocal - The local connection endpointremote - The remote connection endpointservice - The service listen endpoint through which the connection was acceptedreason - The reason for aborting - may be an exception thrown by
connectionAcceptedIOException - If failed to handle the event - the exception is logged but does not prevent further
connections from being acceptedCopyright © 2018–2020 The Apache Software Foundation. All rights reserved.