Package io.pravega.client.stream.impl
Class CheckpointImpl
- java.lang.Object
-
- io.pravega.client.stream.impl.CheckpointImpl
-
- All Implemented Interfaces:
Checkpoint
public class CheckpointImpl extends java.lang.Object implements Checkpoint
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckpointImplasImpl()For internal use.static io.pravega.client.stream.impl.CheckpointImpl.CheckpointBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)static CheckpointfromBytes(java.nio.ByteBuffer buff)Deserializes the checkpoint from its serialized from obtained from callingCheckpoint.toBytes().java.lang.StringgetName()Returns the name of the Checkpoint specified inReaderGroup.initiateCheckpoint(String, java.util.concurrent.ScheduledExecutorService).java.util.Map<Stream,StreamCut>getPositions()inthashCode()java.nio.ByteBuffertoBytes()Serializes the checkpoint to a compact byte array.
-
-
-
Method Detail
-
asImpl
public CheckpointImpl asImpl()
Description copied from interface:CheckpointFor internal use. Do not call.- Specified by:
asImplin interfaceCheckpoint- Returns:
- This
-
toBytes
public java.nio.ByteBuffer toBytes()
Description copied from interface:CheckpointSerializes the checkpoint to a compact byte array.- Specified by:
toBytesin interfaceCheckpoint- Returns:
- A serialized version of this checkpoint.
-
fromBytes
public static Checkpoint fromBytes(java.nio.ByteBuffer buff)
Description copied from interface:CheckpointDeserializes the checkpoint from its serialized from obtained from callingCheckpoint.toBytes().- Parameters:
buff- A serialized checkpoint.- Returns:
- The checkpoint object.
-
builder
public static io.pravega.client.stream.impl.CheckpointImpl.CheckpointBuilder builder()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getName
public java.lang.String getName()
Description copied from interface:CheckpointReturns the name of the Checkpoint specified inReaderGroup.initiateCheckpoint(String, java.util.concurrent.ScheduledExecutorService).- Specified by:
getNamein interfaceCheckpoint- Returns:
- The checkpoint name;
-
-