Package com.github.ambry.replication
Class ReplicationSkipPredicate
- java.lang.Object
-
- com.github.ambry.replication.ReplicationSkipPredicate
-
- All Implemented Interfaces:
java.util.function.Predicate<MessageInfo>
public class ReplicationSkipPredicate extends java.lang.Object implements java.util.function.Predicate<MessageInfo>
-
-
Constructor Summary
Constructors Constructor Description ReplicationSkipPredicate(AccountService accountService, ReplicationConfig replicationConfig)
Construct a ReplicationSkipPredicate object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
test(MessageInfo messageInfo)
Determines ifMessageInfo
container in the status of DELETED_IN_PROGRESS or INACTIVE.
-
-
-
Constructor Detail
-
ReplicationSkipPredicate
public ReplicationSkipPredicate(AccountService accountService, ReplicationConfig replicationConfig)
Construct a ReplicationSkipPredicate object- Parameters:
accountService
- theAccountService
associated with this predicate.
-
-
Method Detail
-
test
public boolean test(MessageInfo messageInfo)
Determines ifMessageInfo
container in the status of DELETED_IN_PROGRESS or INACTIVE. DELETED_IN_PROGRESS containers won't be skipper from replication within the container deletion retention time.- Specified by:
test
in interfacejava.util.function.Predicate<MessageInfo>
- Parameters:
messageInfo
- A message info class that contains basic info about a blob- Returns:
true
if the blob associates with the deprecated container,false
otherwise. Deprecated containers status include DELETE_IN_PROGRESS and INACTIVE.
-
-