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