R - the type of the returned resource.public interface ResourceFactory<R>
ResourcePool to create a new resource instance when a
resource is requested and the pool is not currently full.| Modifier and Type | Method and Description |
|---|---|
R |
getNewResource()
Create and return a new resource.
|
R getNewResource() throws java.lang.Exception
java.lang.Exception - if there are problems creating the resource