Interface ResourcePool

All Known Subinterfaces:
SizedResourcePool

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

Implementations must be immutable.

  • Method Details

    • getType

      ResourceType<?> getType()
      Get the ResourceType.
      Returns:
      the resource type
    • 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:
      IllegalArgumentException - if newPool is not a valid replacement for this ResourcePool