|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
K - Connection keyC - Actual connector object that represents a connectionpublic interface ConnectionManager<K,C extends Connection>
Wrapper around Connector annotated class that will infuse it with connection management capabilities.
PoolingProfile which is a configuration object used to define the connection pooling parameters.
| Method Summary | |
|---|---|
C |
acquireConnection(K connectorKey)
Borrow a connection from the pool |
void |
destroyConnection(K connectorKey,
C connector)
Destroy a connection |
org.mule.config.PoolingProfile |
getConnectionPoolingProfile()
Retrieve the connection pooling profile |
K |
getDefaultConnectionKey()
Retrieve the default connection key |
org.mule.api.retry.RetryPolicyTemplate |
getRetryPolicyTemplate()
Retrieve the reconnection strategy used by this connection manager. |
void |
releaseConnection(K connectorKey,
C connector)
Return a connection to the pool |
void |
setConnectionPoolingProfile(org.mule.config.PoolingProfile value)
Set the connection pooling profile |
| Method Detail |
|---|
void setConnectionPoolingProfile(org.mule.config.PoolingProfile value)
value - PoolingProfile representing the pooling parametersorg.mule.config.PoolingProfile getConnectionPoolingProfile()
C acquireConnection(K connectorKey)
throws Exception
connectorKey - Key used to borrow the connector
Exception - If the connection cannot be created
void releaseConnection(K connectorKey,
C connector)
throws Exception
connectorKey - Key used to borrow the connectorconnector - connector to be returned to the pool
Exception - If the connection cannot be returned
void destroyConnection(K connectorKey,
C connector)
throws Exception
connectorKey - Key used to borrow the connectorconnector - Connector to be destroyed
Exception - If the connection could not be destroyed.K getDefaultConnectionKey()
org.mule.api.retry.RetryPolicyTemplate getRetryPolicyTemplate()
RetryPolicyTemplate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||