Package org.elasticsearch.index.seqno
Class RetentionLeaseUtils
java.lang.Object
org.elasticsearch.index.seqno.RetentionLeaseUtils
public class RetentionLeaseUtils
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description static java.util.Map<java.lang.String,org.elasticsearch.index.seqno.RetentionLease>
toMapExcludingPeerRecoveryRetentionLeases(org.elasticsearch.index.seqno.RetentionLeases retentionLeases)
A utility method to convert a retention lease collection to a map from retention lease ID to retention lease and exclude the automatically-added peer-recovery retention leasesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
toMapExcludingPeerRecoveryRetentionLeases
public static java.util.Map<java.lang.String,org.elasticsearch.index.seqno.RetentionLease> toMapExcludingPeerRecoveryRetentionLeases(org.elasticsearch.index.seqno.RetentionLeases retentionLeases)A utility method to convert a retention lease collection to a map from retention lease ID to retention lease and exclude the automatically-added peer-recovery retention leases- Parameters:
retentionLeases
- the retention lease collection- Returns:
- the map from retention lease ID to retention lease
-