public interface ResourcePool
ResourcePool
implementations must be immutable.
Modifier and Type | Method and Description |
---|---|
ResourceType<?> |
getType()
Get the type of the tracked resource.
|
boolean |
isPersistent()
Whether the underlying resource is persistent.
|
void |
validateUpdate(ResourcePool newPool)
Validates whether or not a new
ResourcePool can replace this ResourcePool . |
ResourceType<?> getType()
boolean isPersistent()
true
, if persistentvoid validateUpdate(ResourcePool newPool)
ResourcePool
can replace this ResourcePool
.newPool
- the pool which is the candidate for replacing this ResourcePool
java.lang.IllegalArgumentException
- if newPool
is not a valid replacement for this ResourcePool