Interface ResourcePool

  • All Known Subinterfaces:
    SizedResourcePool

    public interface ResourcePool
    A resource providing capacity to be used by Caches.

    Implementations must be immutable.

    • Method Detail

      • isPersistent

        boolean isPersistent()
        Indicates whether the underlying resource is persistent.

        Persistence in this context means that data stored will survive a JVM restart, unless destroyed.

        Returns:
        true if persistent, false otherwise
      • validateUpdate

        void validateUpdate​(ResourcePool newPool)
        Validates whether or not a new ResourcePool can replace this ResourcePool on a running Cache.
        Parameters:
        newPool - the pool which is the candidate for replacing this ResourcePool
        Throws:
        java.lang.IllegalArgumentException - if newPool is not a valid replacement for this ResourcePool