org.jboss.jca.core.connectionmanager
Interface ConnectionManager

All Superinterfaces:
org.jboss.jca.core.api.connectionmanager.listener.ConnectionCacheListener, ConnectionListenerFactory, javax.resource.spi.ConnectionManager, Serializable
All Known Subinterfaces:
NoTxConnectionManager, TxConnectionManager
All Known Implementing Classes:
NoTxConnectionManagerImpl, TxConnectionManagerImpl

public interface ConnectionManager
extends org.jboss.jca.core.api.connectionmanager.ConnectionManager, ConnectionCacheListener, ConnectionListenerFactory

Internal connection manager contract.

Author:
Gurkan Erdogdu, Jesper Pedersen

Method Summary
 int getAllocationRetry()
          Get the number of allocation retries
 long getAllocationRetryWaitMillis()
          Get the wait time between each allocation retry
 org.jboss.jca.core.api.connectionmanager.ccm.CachedConnectionManager getCachedConnectionManager()
          Gets cached connection manager
 String getJndiName()
          Get the JNDI name
 Pool getPool()
          Get the pool.
 String getSecurityDomain()
          Get the security domain.
 org.jboss.security.SubjectFactory getSubjectFactory()
          Get the subject factory
 void setJndiName(String value)
          Set the JNDI name
 void shutdown()
          Shutdown
 void unregisterAssociation(ConnectionListener cl, Object c)
          Unregister association.
 
Methods inherited from interface org.jboss.jca.core.api.connectionmanager.ConnectionManager
returnManagedConnection
 
Methods inherited from interface javax.resource.spi.ConnectionManager
allocateConnection
 
Methods inherited from interface org.jboss.jca.core.connectionmanager.listener.ConnectionCacheListener
disconnect, reconnect, transactionStarted
 
Methods inherited from interface org.jboss.jca.core.connectionmanager.listener.ConnectionListenerFactory
createConnectionListener, getTransactionIntegration, isTransactional
 

Method Detail

getPool

Pool getPool()
Get the pool.

Returns:
the pool

getCachedConnectionManager

org.jboss.jca.core.api.connectionmanager.ccm.CachedConnectionManager getCachedConnectionManager()
Gets cached connection manager

Returns:
The cached connection manager

getAllocationRetry

int getAllocationRetry()
Get the number of allocation retries

Returns:
The number of retries

getAllocationRetryWaitMillis

long getAllocationRetryWaitMillis()
Get the wait time between each allocation retry

Returns:
The millis

getJndiName

String getJndiName()
Get the JNDI name

Returns:
The value

setJndiName

void setJndiName(String value)
Set the JNDI name

Parameters:
value - The value

getSecurityDomain

String getSecurityDomain()
Get the security domain.

Returns:
The value

getSubjectFactory

org.jboss.security.SubjectFactory getSubjectFactory()
Get the subject factory

Returns:
The value

unregisterAssociation

void unregisterAssociation(ConnectionListener cl,
                           Object c)
Unregister association.

Parameters:
cl - connection listener
c - connection

shutdown

void shutdown()
Shutdown



Copyright © 2008 Red Hat Middleware LLC (http://www.jboss.com/)