Package org.elasticsearch.index.seqno
Class ReplicationTracker.CheckpointState
- java.lang.Object
-
- org.elasticsearch.index.seqno.ReplicationTracker.CheckpointState
-
- All Implemented Interfaces:
Writeable
- Enclosing class:
- ReplicationTracker
public static class ReplicationTracker.CheckpointState extends java.lang.Object implements Writeable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Constructor Summary
Constructors Constructor Description CheckpointState(long localCheckpoint, long globalCheckpoint, boolean inSync, boolean tracked)
CheckpointState(StreamInput in)
-
Method Summary
Modifier and Type Method Description ReplicationTracker.CheckpointState
copy()
Returns a full copy of this objectboolean
equals(java.lang.Object o)
long
getGlobalCheckpoint()
long
getLocalCheckpoint()
int
hashCode()
java.lang.String
toString()
void
writeTo(StreamOutput out)
Write this into the StreamOutput.
-
-
-
Constructor Detail
-
CheckpointState
public CheckpointState(long localCheckpoint, long globalCheckpoint, boolean inSync, boolean tracked)
-
CheckpointState
public CheckpointState(StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:Writeable
Write this into the StreamOutput.
-
copy
public ReplicationTracker.CheckpointState copy()
Returns a full copy of this object
-
getLocalCheckpoint
public long getLocalCheckpoint()
-
getGlobalCheckpoint
public long getGlobalCheckpoint()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-