Class CmsFlexBucketConfiguration.BucketSet

java.lang.Object
org.opencms.flex.CmsFlexBucketConfiguration.BucketSet
Enclosing class:
CmsFlexBucketConfiguration

A data structure representing a set of Flex cache buckets.

  • Constructor Details

    • BucketSet

      protected BucketSet(Set<String> buckets)
      Creates a new instance from a set of bucket names.

      Parameters:
      buckets - the bucket names
  • Method Details

    • getBucketNames

      Computes the list of bucket names for this instance.

      Returns:
      the list of bucket names
    • matchForDeletion

      public boolean matchForDeletion(CmsFlexBucketConfiguration.BucketSet flexEntryBucketSet)
      If this entry is the bucket set created from a publish list, and the argument is the bucket list of a flex cache entry, then the result of this method determines whether the flex cache entry for which the argument bucket set was created should be removed.

      Parameters:
      flexEntryBucketSet - the bucket set for the flex cache entry
      Returns:
      true if the flex cache entry from which argument flex bucket set was generated should be removed.

    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also: