public interface ReadResultProcessor
Is used in the LogStorage.read(ByteBuffer, long, ReadResultProcessor) method to
process the bytes, which are read and return the count of the appropriated bytes which should be
only been read. Can for example be used to throw away bytes, because they belong to another
fragment which was not read completely into the buffer.
| Modifier and Type | Method and Description |
|---|---|
int |
process(ByteBuffer buffer,
int readResult)
Process the given buffer and use the readResult to return the right count of bytes, which
should been read.
|
int process(ByteBuffer buffer, int readResult)
buffer - the buffer, which should been processedreadResult - the count of bytes,which are read beforeCopyright © 2017–2018 camunda services GmbH. All rights reserved.