public class ConnectionPool extends Object
| Modifier and Type | Field and Description |
|---|---|
protected javax.jms.Connection |
connection |
| Constructor and Description |
|---|
ConnectionPool(javax.jms.Connection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
javax.jms.Session |
createSession(boolean transacted,
int ackMode) |
void |
decrementReferenceCount() |
boolean |
expiredCheck()
Determines if this Connection has expired.
|
javax.jms.Connection |
getConnection() |
long |
getExpiryTimeout() |
int |
getIdleTimeout() |
int |
getMaximumActiveSessionPerConnection() |
int |
getNumActiveSessions() |
int |
getNumIdleSessions() |
int |
getNumSessions() |
void |
incrementReferenceCount() |
boolean |
isBlockIfSessionPoolIsFull() |
boolean |
isUseAnonymousProducers() |
protected javax.jms.Session |
makeSession(SessionKey key) |
void |
setBlockIfSessionPoolIsFull(boolean block)
Configure whether the createSession method should block when there are no more idle sessions and the
pool already contains the maximum number of active sessions.
|
void |
setExpiryTimeout(long expiryTimeout) |
void |
setHasExpired(boolean val) |
void |
setIdleTimeout(int idleTimeout) |
void |
setMaximumActiveSessionPerConnection(int maximumActiveSessionPerConnection) |
void |
setUseAnonymousProducers(boolean value) |
void |
start() |
String |
toString() |
protected void |
unWrap(javax.jms.Connection connection) |
protected javax.jms.Connection |
wrap(javax.jms.Connection connection) |
public void setHasExpired(boolean val)
protected javax.jms.Session makeSession(SessionKey key) throws javax.jms.JMSException
javax.jms.JMSExceptionprotected javax.jms.Connection wrap(javax.jms.Connection connection)
protected void unWrap(javax.jms.Connection connection)
public void start()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.Connection getConnection()
public javax.jms.Session createSession(boolean transacted,
int ackMode)
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void close()
public void incrementReferenceCount()
public void decrementReferenceCount()
public boolean expiredCheck()
public int getIdleTimeout()
public void setIdleTimeout(int idleTimeout)
public void setExpiryTimeout(long expiryTimeout)
public long getExpiryTimeout()
public int getMaximumActiveSessionPerConnection()
public void setMaximumActiveSessionPerConnection(int maximumActiveSessionPerConnection)
public boolean isUseAnonymousProducers()
public void setUseAnonymousProducers(boolean value)
public int getNumSessions()
public int getNumIdleSessions()
public int getNumActiveSessions()
public void setBlockIfSessionPoolIsFull(boolean block)
block - Indicates whether blocking should be used to wait for more space to create a session.public boolean isBlockIfSessionPoolIsFull()
Copyright © 2005-2014 The Apache Software Foundation. All Rights Reserved.