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
IOException
protected Buffer receive(byte[] bytes, int maxChunkSize) throws IOException
IOException
protected BufferedSource transmit(byte[] bytes, int maxChunkSize) throws IOException
IOException
Copyright © 2017. All rights reserved.