public abstract class JMSConnector extends Object
Modifier and Type | Class and Description |
---|---|
protected class |
JMSConnector.AsyncConnection |
protected class |
JMSConnector.SyncConnection |
Modifier and Type | Field and Description |
---|---|
protected JMSVendorAdapter |
m_adapter |
protected boolean |
m_allowReceive |
protected long |
m_connectRetryInterval |
protected long |
m_interactRetryInterval |
protected JMSURLHelper |
m_jmsurl |
protected int |
m_numRetries |
protected int |
m_numSessions |
protected long |
m_poolTimeout |
protected JMSConnector.AsyncConnection |
m_receiveConnection |
protected JMSConnector.SyncConnection |
m_sendConnection |
protected long |
m_timeoutTime |
Constructor and Description |
---|
JMSConnector(ConnectionFactory connectionFactory,
int numRetries,
int numSessions,
long connectRetryInterval,
long interactRetryInterval,
long timeoutTime,
boolean allowReceive,
String clientID,
String username,
String password,
JMSVendorAdapter adapter,
JMSURLHelper jmsurl) |
protected int m_numRetries
protected long m_connectRetryInterval
protected long m_interactRetryInterval
protected long m_timeoutTime
protected long m_poolTimeout
protected JMSConnector.AsyncConnection m_receiveConnection
protected JMSConnector.SyncConnection m_sendConnection
protected int m_numSessions
protected boolean m_allowReceive
protected JMSVendorAdapter m_adapter
protected JMSURLHelper m_jmsurl
public JMSConnector(ConnectionFactory connectionFactory, int numRetries, int numSessions, long connectRetryInterval, long interactRetryInterval, long timeoutTime, boolean allowReceive, String clientID, String username, String password, JMSVendorAdapter adapter, JMSURLHelper jmsurl) throws JMSException
JMSException
public int getNumRetries()
public int numSessions()
public ConnectionFactory getConnectionFactory()
public String getClientID()
public String getUsername()
public String getPassword()
public JMSVendorAdapter getVendorAdapter()
public JMSURLHelper getJMSURL()
protected Connection createConnectionWithRetry(ConnectionFactory connectionFactory, String username, String password) throws JMSException
JMSException
public void stop()
public void start()
public void shutdown()
public abstract JMSEndpoint createEndpoint(String destinationName) throws JMSException
JMSException
public abstract JMSEndpoint createEndpoint(Destination destination) throws JMSException
JMSException
protected abstract Connection internalConnect(ConnectionFactory connectionFactory, String username, String password) throws JMSException
JMSException
protected abstract JMSConnector.SyncConnection createSyncConnection(ConnectionFactory factory, Connection connection, int numSessions, String threadName, String clientID, String username, String password) throws JMSException
JMSException
protected abstract JMSConnector.AsyncConnection createAsyncConnection(ConnectionFactory factory, Connection connection, String threadName, String clientID, String username, String password) throws JMSException
JMSException
Copyright © The Apache Software Foundation. All Rights Reserved.