@NotThreadSafe public final class ChannelStatePersister extends Object
ChannelStateWriter.| 限定符和类型 | 方法和说明 |
|---|---|
protected Optional<Long> |
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
protected void stopPersisting(long id)
protected void maybePersist(Buffer buffer)
protected Optional<Long> 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–2022 The Apache Software Foundation. All rights reserved.