|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Manages a pool of ManagedConnection
instances, for a particular
ManagedConnectionFactory
.
Method Summary | |
void |
close()
Closes this connection pool, cleaning up any allocated resources. |
ManagedConnection |
createManagedConnection(java.security.Principal principal,
ConnectionRequestInfo info)
Creates a new connection. |
ManagedConnectionAcceptor |
createManagedConnectionAcceptor(Authenticator authenticator,
ConnectionRequestInfo info)
Creates an acceptor for connections |
ManagedConnectionAcceptorListener |
getManagedConnectionAcceptorListener()
Returns a listener for handling accepted connections. |
ManagedConnectionAcceptor |
matchManagedConnectionAcceptors(ConnectionRequestInfo info)
Returns a matched acceptor from the set of pooled connections. |
ManagedConnection |
matchManagedConnections(java.security.Principal principal,
ConnectionRequestInfo info)
Returns a matched connection from the set of pooled connections. |
void |
setCallerListener(CallerListener listener)
Sets the listener for caller events. |
Method Detail |
public ManagedConnection createManagedConnection(java.security.Principal principal, ConnectionRequestInfo info) throws ResourceException
principal
- the security principalinfo
- the connection request infoResourceException
- if a connection cannot be establishedpublic ManagedConnectionAcceptor createManagedConnectionAcceptor(Authenticator authenticator, ConnectionRequestInfo info) throws ResourceException
authenticator
- authenticates incoming connectionsinfo
- the connection request infoResourceException
- if an acceptor cannot be createdpublic ManagedConnection matchManagedConnections(java.security.Principal principal, ConnectionRequestInfo info) throws ResourceException
principal
- the security principalinfo
- the connection request infonull
if none is
foundResourceException
- for any errorpublic ManagedConnectionAcceptor matchManagedConnectionAcceptors(ConnectionRequestInfo info) throws ResourceException
info
- the connection request infonull
if none is
foundResourceException
- for any errorpublic ManagedConnectionAcceptorListener getManagedConnectionAcceptorListener() throws ResourceException
ResourceException
- for any errorpublic void setCallerListener(CallerListener listener)
listener
- the listenerpublic void close() throws ResourceException
ResourceException
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |