|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SocketConnectorHandler
Socket based client side connector.
SocketConnectorHandler is responsible for creating and initializing
Connection, and optionally connect is to a specific local/remote
address.
| Method Summary | |
|---|---|
Future<Connection> |
connect(SocketAddress remoteAddress)
Creates, initializes and connects socket to the specific SocketAddress and returns Connection, representing socket. |
Future<Connection> |
connect(SocketAddress remoteAddress,
SocketAddress localAddress)
Creates, initializes socket, binds it to the specific local and remote SocketAddress and returns Connection, representing socket. |
Future<Connection> |
connect(String host,
int port)
Creates, initializes and connects socket to the specific remote host and port and returns Connection, representing socket. |
Processor |
getProcessor()
Get the default Processor to process IOEvent, occuring
on connection phase. |
ProcessorSelector |
getProcessorSelector()
Gets the default ProcessorSelector, which will be used to get
Processor to process I/O events, occuring on connection phase. |
void |
setProcessor(Processor defaultProcessor)
Set the default Processor to process IOEvent, occuring
on connection phase. |
void |
setProcessorSelector(ProcessorSelector defaultProcessorSelector)
Sets the default ProcessorSelector, which will be used to get
Processor to process I/O events, occuring on connection phase. |
| Method Detail |
|---|
Future<Connection> connect(String host,
int port)
throws IOException
Connection, representing socket.
host - remote host to connect to.port - remote port to connect to.
Future of connect operation, which could be used to get
resulting Connection.
IOException
Future<Connection> connect(SocketAddress remoteAddress)
throws IOException
SocketAddress and returns Connection, representing socket.
remoteAddress - remote address to connect to.
Future of connect operation, which could be used to get
resulting Connection.
IOException
Future<Connection> connect(SocketAddress remoteAddress,
SocketAddress localAddress)
throws IOException
SocketAddress and returns Connection, representing socket.
remoteAddress - remote address to connect to.localAddress - local address to bind socket to.
Future of connect operation, which could be used to get
resulting Connection.
IOExceptionProcessor getProcessor()
Processor to process IOEvent, occuring
on connection phase.
Processor to process IOEvent,
occuring on connection phase.void setProcessor(Processor defaultProcessor)
Processor to process IOEvent, occuring
on connection phase.
defaultProcessor - the default Processor to process
IOEvent, occuring on connection phase.ProcessorSelector getProcessorSelector()
ProcessorSelector, which will be used to get
Processor to process I/O events, occuring on connection phase.
ProcessorSelector, which will be used to get
Processor to process I/O events, occuring on connection phase.void setProcessorSelector(ProcessorSelector defaultProcessorSelector)
ProcessorSelector, which will be used to get
Processor to process I/O events, occuring on connection phase.
defaultProcessorSelector - the default ProcessorSelector,
which will be used to get Processor to process I/O events,
occuring on connection phase.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||