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 voidcleanup(ResourceHandle resource)voidcloseUserConnection(ResourceHandle resource)ResourceHandlecreateResource()voiddestroyResource(ResourceHandle resource)voidfillInResourceObjects(ResourceHandle resource)SetgetInvalidConnections(Set connectionSet)ObjectgetSharedConnection(ResourceHandle h)booleanhasValidatingMCF()booleanisConnectionValid(ResourceHandle resource)booleanisTransactional()booleanmatchConnection(ResourceHandle h)booleanshareableWithinComponent()booleansupportsReauthentication()
-
-
-
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()
-
-