T - typepublic interface LinkListener<T>
| Modifier and Type | Method and Description |
|---|---|
void |
onException(Throwable cause,
SocketAddress remoteAddress,
T message)
Called when the sent message to remoteAddress is failed to be transferred.
|
void |
onSuccess(T message)
Called when the sent message is successfully transferred.
|
void onSuccess(T message)
message - the sent messagevoid onException(Throwable cause, SocketAddress remoteAddress, T message)
cause - the cause of exceptionremoteAddress - the exception occurred remote addressmessage - the send messageCopyright © 2017 The Apache Software Foundation. All rights reserved.