tyrex.resource
public interface Resource
An installed resource has a client factory that is made available to the application, typically through JNDI, allowing it to create new connections. The client factory type depends on the type of resource in use.
An installed resource has a connection pool that manages utilization of the resource. The connection pool metrics can be obtained from Resource.
Version: $Revision: 1.7 $
Method Summary | |
---|---|
abstract void | destroy()
Called to destory the resource once it is no longer in use.
|
abstract Object | getClientFactory()
Returns the client connection factory. |
abstract Class | getClientFactoryClass()
Returns the client connection factory class. |
abstract PoolLimits | getPoolLimits()
Returns the limits placed on the connection pool. |
abstract PoolMetrics | getPoolMetrics()
Returns the pool metrics. |
abstract XAResource | getXAResource()
Returns the XA resource interface. |
The application server must render the connection factory inaccessible to the application before calling this method.
Returns: The client connection factory
Returns: The client connection factory class
Returns: The limits placed on the connection pool
Returns: The pool metrics
Returns: The XA resource interface