- All Known Implementing Classes:
Runnablethat (re)connects a socket.
An implementation of this interface is responsible for repeatedly attempting to create a socket connection to a remote host.
- Carl Harris
Nested Class SummaryModifier and TypeInterfaceDescription
static interfaceAn exception handler that is notified of all exceptions that occur during the (re)connection process.
Method SummaryModifier and TypeMethodDescription
call()Blocks the calling thread until a connection is successfully established.
voidSets the connector's exception handler.
voidSets the connector's socket factory.
callBlocks the calling thread until a connection is successfully established.
setExceptionHandlerSets the connector's exception handler.
The handler must be set before the
call()method is invoked.
exceptionHandler- the handler to set
setSocketFactorySets the connector's socket factory.
If no factory is configured that connector will use the platform's default factory.
socketFactory- the factory to set