public class AgentProtocolClientFilterLayer extends FilterLayer
FilterLayer that sends the AgentProtocol client handshake.ProtocolLayer.Recv, ProtocolLayer.SendEMPTY_BUFFER, UTF_8| Constructor and Description |
|---|
AgentProtocolClientFilterLayer(String name)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
doSend(ByteBuffer data)
SPI: Sends data to the lower layer.
|
void |
onRecv(ByteBuffer data)
SPI: Callback on data being received from the lower layer.
|
void |
start()
Starts this layer.
|
abort, completed, doCloseSend, flushRecv, flushSend, init, isRecvOpen, isSendOpen, next, onRecvClosed, stackpublic AgentProtocolClientFilterLayer(String name)
name - the AgentProtocol.getName().public void start()
throws IOException
start in interface ProtocolLayerstart in class FilterLayerIOException - if something goes wrong.public void onRecv(@Nonnull ByteBuffer data) throws IOException
onRecv in interface ProtocolLayer.RecvonRecv in class FilterLayerdata - the data received. Any data consumed from the ByteBuffer can be assumed as processed.
Any data not consumed from the ByteBuffer will be the responsibility of the caller
to resubmit in subsequent calls.IOException - if there was an error during processing of the received data.public void doSend(@Nonnull ByteBuffer data) throws IOException
doSend in interface ProtocolLayer.SenddoSend in class FilterLayerdata - the data to send. Any data consumed from the ByteBuffer can be assumed as processed.
Any data not consumed from the ByteBuffer will be the responsibility of the caller
to resubmit in subsequent calls.IOException - if there was an error during processing of the data.Copyright © 2004–2017. All rights reserved.