public interface IStreamSessionFactory
ServerSocketChannel being registered with the
selector loop.SelectorLoop| Modifier and Type | Method and Description |
|---|---|
void |
closed(ServerSocketChannel channel)
Notifies about closing and unregistering of a listening channel.
|
StreamSession |
create(SocketChannel channel)
Creates a stream-oriented session for a newly accepted connection.
|
void |
exception(ServerSocketChannel channel,
Throwable exception)
Notifies about an exception caught during processing of a listening
channel.
|
void |
registered(ServerSocketChannel channel)
Notifies about registration of a listening channel.
|
StreamSession create(SocketChannel channel) throws Exception
channel - the socket channel associated with the accepted connection.Exception - when a stream-oriented session could not be createdvoid registered(ServerSocketChannel channel)
channel - the listening channel that has been registeredvoid closed(ServerSocketChannel channel)
channel - the listening channel that has been closedvoid exception(ServerSocketChannel channel, Throwable exception)
channel - the listening channel for witch the exception was caughtexception - the exception that was caughtCopyright © 2017–2022 SNF4J.ORG. All rights reserved.