|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConnectionManager
Simple interface implemented by connectors to provide active connections to their endpoint systems, which is generally expected to be a facade on top of a configurable underlying connection pool.
The following are examples of situations where a connection to the managed endpoint system is needed:
GenericObjectPoolConnectionManager| Method Summary | |
|---|---|
Object |
borrowConnection()
Needs to be abstract for force implementers to very carefully review any exceptions that might be thrown and decide which ones are retriable soft failures (in which case should throw LdapServiceUnavailableException
with code ResultCodeEnum.UNAVAILABLE)
and which ones are hard failures (in which can throw LdapServiceUnavailableException
with any other code, or any other NamingException variety which implements
LdapException). |
void |
clearConnection()
This method can be called to clear all existing connections in the pool when one is found to be in a in stale or inconsistent state. |
void |
returnConnection(Object connection)
|
| Methods inherited from interface com.ca.jcs.Activatable |
|---|
activate, deactivate |
| Method Detail |
|---|
Object borrowConnection()
throws NamingException
LdapServiceUnavailableException
with code ResultCodeEnum.UNAVAILABLE)
and which ones are hard failures (in which can throw LdapServiceUnavailableException
with any other code, or any other NamingException variety which implements
LdapException).
NamingException - If connection can't be borrowed, can't return null.void returnConnection(Object connection)
void clearConnection()
throws NamingException
NamingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||