Class ChannelStatePersister
java.lang.Object
org.apache.flink.runtime.io.network.partition.consumer.ChannelStatePersister
Helper class for persisting channel state via
ChannelStateWriter.-
Method Summary
Modifier and TypeMethodDescriptionprotected OptionalLongcheckForBarrier(Buffer buffer) protected booleanprotected voidmaybePersist(Buffer buffer) protected AbstractEventparseEvent(Buffer buffer) Parses the buffer as an event and returns theCheckpointBarrierif the event is indeed a barrier or returns null in all other cases.protected voidstartPersisting(long barrierId, List<Buffer> knownBuffers) protected voidstopPersisting(long id) toString()
-
Method Details
-
startPersisting
protected void startPersisting(long barrierId, List<Buffer> knownBuffers) throws CheckpointException - Throws:
CheckpointException
-
stopPersisting
protected void stopPersisting(long id) -
maybePersist
-
checkForBarrier
- Throws:
IOException
-
parseEvent
Parses the buffer as an event and returns theCheckpointBarrierif the event is indeed a barrier or returns null in all other cases.- Throws:
IOException
-
hasBarrierReceived
protected boolean hasBarrierReceived() -
toString
-