Interface ResourceHandler

    • Method Detail

      • deleteResource

        void deleteResource​(ResourceHandle resourceHandle)
        destroys the given resource
        Parameters:
        resourceHandle - resource to be destroyed
      • createResourceAndAddToPool

        void createResourceAndAddToPool()
                                 throws PoolingException
        create a new resource and add it to pool (using default resource-allocator)
        Throws:
        PoolingException - when unable to create a resource
      • getInvalidConnections

        Set getInvalidConnections​(Set connections)
                           throws jakarta.resource.ResourceException
        gets the invalid connections from the given connections set
        Parameters:
        connections - that need to be validated
        Returns:
        invalid connections set
        Throws:
        jakarta.resource.ResourceException - when unable to validate
      • invalidConnectionDetected

        void invalidConnectionDetected​(ResourceHandle h)
        callback method to handle the case of invalid connection detected
        Parameters:
        h - connection that is invalid