public interface DriverIODelegate
Modifier and Type | Method and Description |
---|---|
void |
connect()
Connect to the underlying IO source.
|
void |
disconnect()
Disconnect from the underlying IO source.
|
void |
onNotifyConnectFailed(java.lang.Exception connectError)
AbstractDriver.notifyConnectFailed(Exception) was intercepted by AbstractIODelegatingDriver . |
void |
onNotifyConnectionLost()
AbstractDriver.notifyConnectionLost() was intercepted by AbstractIODelegatingDriver . |
void |
onNotifyConnectSucceeded()
AbstractDriver.notifyConnectSucceeded() was intercepted by AbstractIODelegatingDriver . |
void |
onNotifyDisconnectDone()
AbstractDriver.notifyDisconnectDone() was intercepted by AbstractIODelegatingDriver . |
void |
writeToIO(java.nio.ByteBuffer... buffers)
Write data to the underlying IO source.
|
void connect() throws java.io.IOException
java.io.IOException
- Any IOException
thrown during connect will result in a call to AbstractDriver.notifyConnectFailed(Exception)
and the rest of the connection sequence will
be aborted. Implementations do not need to make this call themselves.void disconnect()
void writeToIO(java.nio.ByteBuffer... buffers)
buffers
- Data to write.void onNotifyConnectSucceeded()
AbstractDriver.notifyConnectSucceeded()
was intercepted by AbstractIODelegatingDriver
.void onNotifyConnectFailed(java.lang.Exception connectError)
AbstractDriver.notifyConnectFailed(Exception)
was intercepted by AbstractIODelegatingDriver
.connectError
- The error associated with the connect failure.void onNotifyConnectionLost()
AbstractDriver.notifyConnectionLost()
was intercepted by AbstractIODelegatingDriver
.void onNotifyDisconnectDone()
AbstractDriver.notifyDisconnectDone()
was intercepted by AbstractIODelegatingDriver
.