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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReplicationTracker.CheckpointStatecopy()Returns a full copy of this objectbooleanequals(java.lang.Object o)longgetGlobalCheckpoint()longgetLocalCheckpoint()inthashCode()java.lang.StringtoString()voidwriteTo(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:WriteableWrite 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:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-