public interface TransportListener
Modifier and Type | Method and Description |
---|---|
void |
onData(io.netty.buffer.ByteBuf incoming)
Called when new incoming data has become available.
|
void |
onTransportClosed()
Called if the connection state becomes closed.
|
void |
onTransportError(Throwable cause)
Called when an error occurs during normal Transport operations.
|
void onData(io.netty.buffer.ByteBuf incoming)
incoming
- the next incoming packet of data.void onTransportClosed()
void onTransportError(Throwable cause)
cause
- the error that triggered this event.Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.