Module org.elasticsearch.server
Package org.elasticsearch.index.translog
Class TranslogDeletionPolicy
java.lang.Object
org.elasticsearch.index.translog.TranslogDeletionPolicy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
long
Returns the local checkpoint of the safe commit.void
setLocalCheckpointOfSafeCommit
(long newCheckpoint)
-
Constructor Details
-
TranslogDeletionPolicy
public TranslogDeletionPolicy()
-
-
Method Details
-
assertNoOpenTranslogRefs
public void assertNoOpenTranslogRefs() -
setLocalCheckpointOfSafeCommit
public void setLocalCheckpointOfSafeCommit(long newCheckpoint) -
getLocalCheckpointOfSafeCommit
public long getLocalCheckpointOfSafeCommit()Returns the local checkpoint of the safe commit. This value is used to calculate the min required generation for recovery.
-