Interface ResourceAllocator
-
- All Known Implementing Classes:
AbstractConnectorAllocator
,BasicResourceAllocator
,ConnectorAllocator
,LocalTxConnectorAllocator
,NoTxConnectorAllocator
public interface ResourceAllocator
- Author:
- Tony Ng
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
cleanup(ResourceHandle resource)
void
closeUserConnection(ResourceHandle resource)
ResourceHandle
createResource()
void
destroyResource(ResourceHandle resource)
void
fillInResourceObjects(ResourceHandle resource)
Set
getInvalidConnections(Set connectionSet)
Object
getSharedConnection(ResourceHandle h)
boolean
hasValidatingMCF()
boolean
isConnectionValid(ResourceHandle resource)
boolean
isTransactional()
boolean
matchConnection(ResourceHandle h)
boolean
shareableWithinComponent()
boolean
supportsReauthentication()
-
-
-
Method Detail
-
createResource
ResourceHandle createResource() throws PoolingException
- Throws:
PoolingException
-
fillInResourceObjects
void fillInResourceObjects(ResourceHandle resource) throws PoolingException
- Throws:
PoolingException
-
closeUserConnection
void closeUserConnection(ResourceHandle resource) throws PoolingException
- Throws:
PoolingException
-
destroyResource
void destroyResource(ResourceHandle resource) throws PoolingException
- Throws:
PoolingException
-
matchConnection
boolean matchConnection(ResourceHandle h)
-
supportsReauthentication
boolean supportsReauthentication()
-
isTransactional
boolean isTransactional()
-
cleanup
void cleanup(ResourceHandle resource) throws PoolingException
- Throws:
PoolingException
-
shareableWithinComponent
boolean shareableWithinComponent()
-
getSharedConnection
Object getSharedConnection(ResourceHandle h) throws PoolingException
- Throws:
PoolingException
-
getInvalidConnections
Set getInvalidConnections(Set connectionSet) throws jakarta.resource.ResourceException
- Throws:
jakarta.resource.ResourceException
-
isConnectionValid
boolean isConnectionValid(ResourceHandle resource)
-
hasValidatingMCF
boolean hasValidatingMCF()
-
-