@NotThreadSafe public final class ChannelStatePersister extends Object
ChannelStateWriter.| Modifier and Type | Method and Description |
|---|---|
protected OptionalLong |
checkForBarrier(Buffer buffer) |
protected boolean |
hasBarrierReceived() |
protected void |
maybePersist(Buffer buffer) |
protected AbstractEvent |
parseEvent(Buffer buffer)
Parses the buffer as an event and returns the
CheckpointBarrier if the event is
indeed a barrier or returns null in all other cases. |
protected void |
startPersisting(long barrierId,
List<Buffer> knownBuffers) |
protected void |
stopPersisting(long id) |
String |
toString() |
protected void startPersisting(long barrierId,
List<Buffer> knownBuffers)
throws CheckpointException
CheckpointExceptionprotected void stopPersisting(long id)
protected void maybePersist(Buffer buffer)
protected OptionalLong checkForBarrier(Buffer buffer) throws IOException
IOException@Nullable protected AbstractEvent parseEvent(Buffer buffer) throws IOException
CheckpointBarrier if the event is
indeed a barrier or returns null in all other cases.IOExceptionprotected boolean hasBarrierReceived()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.