N - the type of NetworkContext@Deprecated public final class BytesBufferHandler<N extends NetworkContext<N>> extends net.openhft.chronicle.core.io.SimpleCloseable implements BufferHandler
readData, writeData
- application-side data - decrypted, handled by handleDecryptedData
The delegate TcpHandler will be invoked with decrypted input data, and its
output will be encrypted read for transmission over a socket.
| Constructor and Description |
|---|
BytesBufferHandler()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handleDecryptedData(ByteBuffer input,
ByteBuffer output)
Deprecated.
Accept decrypted input data, previous collected by an invocation of
readData. |
protected void |
performClose()
Deprecated.
|
int |
readData(ByteBuffer target)
Deprecated.
Read encrypted data from an input into the supplied buffer.
|
void |
set(TcpHandler<N> delegate,
net.openhft.chronicle.bytes.Bytes<ByteBuffer> input,
net.openhft.chronicle.bytes.Bytes<ByteBuffer> output,
N networkContext)
Deprecated.
|
int |
writeData(ByteBuffer encrypted)
Deprecated.
Write encrypted data to an output from the supplied buffer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreferenceId, referenceName, temporarypublic void set(TcpHandler<N> delegate, net.openhft.chronicle.bytes.Bytes<ByteBuffer> input, net.openhft.chronicle.bytes.Bytes<ByteBuffer> output, N networkContext)
public int readData(ByteBuffer target)
readData in interface BufferHandlertarget - the target buffer for encrypted datapublic void handleDecryptedData(ByteBuffer input, ByteBuffer output)
readData.
Any plain-text output should be written to the output buffer for encryption.handleDecryptedData in interface BufferHandlerinput - a buffer containing decrypted input dataoutput - a buffer that can be used for writing plain-text outputpublic int writeData(ByteBuffer encrypted)
writeData in interface BufferHandlerencrypted - the buffer containing encrypted dataprotected void performClose()
performClose in class net.openhft.chronicle.core.io.SimpleCloseableCopyright © 2023. All rights reserved.