Package io.pravega.client.stream.impl
Class CheckpointImpl
- java.lang.Object
-
- io.pravega.client.stream.impl.CheckpointImpl
-
- All Implemented Interfaces:
Checkpoint
public final class CheckpointImpl extends java.lang.Object implements Checkpoint
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckpointImpl
asImpl()
For internal use.static io.pravega.client.stream.impl.CheckpointImpl.CheckpointBuilder
builder()
boolean
equals(java.lang.Object o)
static Checkpoint
fromBytes(java.nio.ByteBuffer buff)
Deserializes the checkpoint from its serialized from obtained from callingCheckpoint.toBytes()
.java.lang.String
getName()
Returns the name of the Checkpoint specified inReaderGroup.initiateCheckpoint(String, java.util.concurrent.ScheduledExecutorService)
.java.util.Map<Stream,StreamCut>
getPositions()
int
hashCode()
java.nio.ByteBuffer
toBytes()
Serializes the checkpoint to a compact byte array.
-
-
-
Method Detail
-
asImpl
public CheckpointImpl asImpl()
Description copied from interface:Checkpoint
For internal use. Do not call.- Specified by:
asImpl
in interfaceCheckpoint
- Returns:
- This
-
toBytes
public java.nio.ByteBuffer toBytes()
Description copied from interface:Checkpoint
Serializes the checkpoint to a compact byte array.- Specified by:
toBytes
in interfaceCheckpoint
- Returns:
- A serialized version of this checkpoint.
-
fromBytes
public static Checkpoint fromBytes(java.nio.ByteBuffer buff)
Description copied from interface:Checkpoint
Deserializes 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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getName
public java.lang.String getName()
Description copied from interface:Checkpoint
Returns the name of the Checkpoint specified inReaderGroup.initiateCheckpoint(String, java.util.concurrent.ScheduledExecutorService)
.- Specified by:
getName
in interfaceCheckpoint
- Returns:
- The checkpoint name;
-
-