public interface ResourceHandler
| Modifier and Type | Method and Description |
|---|---|
ResourceHandle |
createResource(ResourceAllocator allocator)
create a new resource using the given resource-allocator
|
void |
createResourceAndAddToPool()
create a new resource and add it to pool (using default resource-allocator)
|
void |
deleteResource(ResourceHandle resourceHandle)
destroys the given resource
|
Set |
getInvalidConnections(Set connections)
gets the invalid connections from the given connections set
|
void |
invalidConnectionDetected(ResourceHandle h)
callback method to handle the case of invalid connection detected
|
void deleteResource(ResourceHandle resourceHandle)
resourceHandle - resource to be destroyedResourceHandle createResource(ResourceAllocator allocator) throws PoolingException
allocator - allocator to create a resourcePoolingException - when unable to create a resourcevoid createResourceAndAddToPool()
throws PoolingException
PoolingException - when unable to create a resourceSet getInvalidConnections(Set connections) throws javax.resource.ResourceException
connections - that need to be validatedjavax.resource.ResourceException - when unable to validatevoid invalidConnectionDetected(ResourceHandle h)
h - connection that is invalidCopyright © 2019. All rights reserved.