Class ReplicationSkipPredicate

  • All Implemented Interfaces:
    java.util.function.Predicate<MessageInfo>

    public class ReplicationSkipPredicate
    extends java.lang.Object
    implements java.util.function.Predicate<MessageInfo>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean test​(MessageInfo messageInfo)
      Determines if MessageInfo container in the status of DELETED_IN_PROGRESS or INACTIVE.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or
    • Constructor Detail

      • ReplicationSkipPredicate

        public ReplicationSkipPredicate​(AccountService accountService,
                                        ReplicationConfig replicationConfig)
        Construct a ReplicationSkipPredicate object
        Parameters:
        accountService - the AccountService associated with this predicate.
    • Method Detail

      • test

        public boolean test​(MessageInfo messageInfo)
        Determines if MessageInfo 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 interface java.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.