Class DefaultServicesAssignmentHandler.ServiceCache

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet<String>
org.ametys.web.repository.page.DefaultServicesAssignmentHandler.ServiceCache
All Implemented Interfaces:
Serializable, Cloneable, Iterable<String>, Collection<String>, Set<String>
Enclosing class:
DefaultServicesAssignmentHandler

The cache is a HashSet of String + a date
See Also:
  • Constructor Details

    • ServiceCache

      public ServiceCache(long sourceLastModified)
      Build the cache
      Parameters:
      sourceLastModified - The last modification date
  • Method Details

    • isValid

      public boolean isValid(long newSourceLastModified)
      Determine if the cache is valid
      Parameters:
      newSourceLastModified - The new last modification date
      Returns:
      true if the cache is still valid