public interface ResourcePool
Cache
s.
Implementations must be immutable.
Modifier and Type | Method and Description |
---|---|
ResourceType<?> |
getType()
Get the
ResourceType . |
boolean |
isPersistent()
Indicates whether the underlying resource is persistent.
|
void |
validateUpdate(ResourcePool newPool)
|
ResourceType<?> getType()
ResourceType
.boolean isPersistent()
Persistence in this context means that data stored will survive a JVM restart, unless destroyed.
true
if persistent, false
otherwisevoid validateUpdate(ResourcePool newPool)
newPool
- the pool which is the candidate for replacing this ResourcePool
java.lang.IllegalArgumentException
- if newPool
is not a valid replacement for this ResourcePool