|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionPool
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 |
---|
ManagedConnection createManagedConnection(java.security.Principal principal, ConnectionRequestInfo info) throws ResourceException
principal
- the security principalinfo
- the connection request info
ResourceException
- if a connection cannot be establishedManagedConnectionAcceptor createManagedConnectionAcceptor(Authenticator authenticator, ConnectionRequestInfo info) throws ResourceException
authenticator
- authenticates incoming connectionsinfo
- the connection request info
ResourceException
- if an acceptor cannot be createdManagedConnection matchManagedConnections(java.security.Principal principal, ConnectionRequestInfo info) throws ResourceException
principal
- the security principalinfo
- the connection request info
null
if none is
found
ResourceException
- for any errorManagedConnectionAcceptor matchManagedConnectionAcceptors(ConnectionRequestInfo info) throws ResourceException
info
- the connection request info
null
if none is
found
ResourceException
- for any errorManagedConnectionAcceptorListener getManagedConnectionAcceptorListener() throws ResourceException
ResourceException
- for any errorvoid setCallerListener(CallerListener listener)
listener
- the listenervoid close() throws ResourceException
ResourceException
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |