public static class BufferPerformanceBenchmark.BufferState extends Object
| Constructor and Description |
|---|
BufferState() |
| Modifier and Type | Method and Description |
|---|---|
protected Buffer |
receive(byte[] bytes,
int maxChunkSize)
Fills up the receive buffer, hands off to process buffer and returns it for consuming.
|
void |
releaseBuffers() |
protected BufferedSource |
transmit(byte[] bytes,
int maxChunkSize)
Fills up the process buffer, hands off to send buffer and returns it for consuming.
|
public void releaseBuffers()
throws IOException
IOExceptionprotected Buffer receive(byte[] bytes, int maxChunkSize) throws IOException
IOExceptionprotected BufferedSource transmit(byte[] bytes, int maxChunkSize) throws IOException
IOExceptionCopyright © 2017. All rights reserved.