public static class CachedBufferBlocker.CachedBufferOrEventSequence extends Object implements BufferOrEventSequence
CachedBufferBlocker
.Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Cleans up all the resources held by the sequence.
|
BufferOrEvent |
getNext()
Gets the next BufferOrEvent from the sequence, or
null , if the
sequence is exhausted. |
void |
open()
Initializes the sequence for reading.
|
long |
size()
Gets the size of the sequence.
|
public void open()
BufferOrEventSequence
open
in interface BufferOrEventSequence
@Nullable public BufferOrEvent getNext()
BufferOrEventSequence
null
, if the
sequence is exhausted.getNext
in interface BufferOrEventSequence
null
(end of sequence).public void cleanup()
BufferOrEventSequence
cleanup
in interface BufferOrEventSequence
public long size()
BufferOrEventSequence
size
in interface BufferOrEventSequence
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.