T
- typepublic class LoggingLinkListener<T> extends Object implements LinkListener<T>
Constructor and Description |
---|
LoggingLinkListener() |
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 transferred successfully.
|
public LoggingLinkListener()
public void onSuccess(T message)
onSuccess
in interface LinkListener<T>
message
- the sent messagepublic void onException(Throwable cause, SocketAddress remoteAddress, T message)
onException
in interface LinkListener<T>
cause
- the cause of exceptionremoteAddress
- the exception occurred remote addressmessage
- the send messageCopyright © 2017 The Apache Software Foundation. All rights reserved.