Package org.elasticsearch.index.seqno
Class RetentionLeaseUtils
java.lang.Object
org.elasticsearch.index.seqno.RetentionLeaseUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic Map<String,
RetentionLease> toMapExcludingPeerRecoveryRetentionLeases
(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
-
Method Details
-
toMapExcludingPeerRecoveryRetentionLeases
public static Map<String,RetentionLease> toMapExcludingPeerRecoveryRetentionLeases(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
-