|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Resource
Represents an installed 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
getPoolMetrics()
.
Method Summary | |
---|---|
void |
destroy()
Called to destory the resource once it is no longer in use. |
java.lang.Object |
getClientFactory()
Returns the client connection factory. |
java.lang.Class |
getClientFactoryClass()
Returns the client connection factory class. |
PoolLimits |
getPoolLimits()
Returns the limits placed on the connection pool. |
PoolMetrics |
getPoolMetrics()
Returns the pool metrics. |
javax.transaction.xa.XAResource |
getXAResource()
Returns the XA resource interface. |
Method Detail |
---|
PoolMetrics getPoolMetrics()
java.lang.Object getClientFactory()
java.lang.Class getClientFactoryClass()
javax.transaction.xa.XAResource getXAResource()
PoolLimits getPoolLimits()
void destroy()
The application server must render the connection factory inaccessible to the application before calling this method.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |