public class NevadoConnection extends Object implements javax.jms.Connection
Modifier and Type | Field and Description |
---|---|
protected boolean |
_inUse |
static int |
DEFAULT_MAX_POLL_WAIT_MS |
Constructor and Description |
---|
NevadoConnection(SQSConnector sqsConnector) |
public static final int DEFAULT_MAX_POLL_WAIT_MS
protected volatile boolean _inUse
public NevadoConnection(SQSConnector sqsConnector) throws javax.jms.JMSException
javax.jms.JMSException
public NevadoSession createSession(boolean transacted, int acknowledgeMode) throws javax.jms.JMSException
createSession
in interface javax.jms.Connection
javax.jms.JMSException
protected void initializeSession(NevadoSession nevadoSession)
public NevadoConnectionMetaData getMetaData() throws javax.jms.JMSException
getMetaData
in interface javax.jms.Connection
javax.jms.JMSException
public javax.jms.ExceptionListener getExceptionListener()
getExceptionListener
in interface javax.jms.Connection
public void setExceptionListener(javax.jms.ExceptionListener exceptionListener) throws javax.jms.IllegalStateException
setExceptionListener
in interface javax.jms.Connection
javax.jms.IllegalStateException
public void start() throws javax.jms.JMSException
start
in interface javax.jms.Connection
javax.jms.JMSException
public void stop() throws javax.jms.JMSException
stop
in interface javax.jms.Connection
javax.jms.JMSException
public void close() throws javax.jms.JMSException
close
in interface javax.jms.Connection
javax.jms.JMSException
public javax.jms.ConnectionConsumer createConnectionConsumer(javax.jms.Destination destination, String s, javax.jms.ServerSessionPool serverSessionPool, int i) throws javax.jms.JMSException
createConnectionConsumer
in interface javax.jms.Connection
javax.jms.JMSException
public javax.jms.ConnectionConsumer createDurableConnectionConsumer(javax.jms.Topic topic, String s, String s1, javax.jms.ServerSessionPool serverSessionPool, int i) throws javax.jms.JMSException
createDurableConnectionConsumer
in interface javax.jms.Connection
javax.jms.JMSException
protected NevadoTemporaryTopic createTemporaryTopic() throws javax.jms.JMSException
javax.jms.JMSException
public void deleteTemporaryTopic(NevadoTemporaryTopic temporaryTopic) throws javax.jms.JMSException
javax.jms.JMSException
public void deleteTopic(NevadoTopic topic) throws javax.jms.JMSException
javax.jms.JMSException
protected NevadoTemporaryQueue createTemporaryQueue() throws javax.jms.JMSException
javax.jms.JMSException
public void deleteTemporaryQueue(NevadoTemporaryQueue temporaryQueue) throws javax.jms.JMSException
javax.jms.JMSException
protected void deleteQueue(NevadoQueue queue) throws javax.jms.JMSException
javax.jms.JMSException
protected boolean ownsTemporaryDestination(javax.jms.Destination temporaryDestination)
public Collection<NevadoTemporaryQueue> listAllTemporaryQueues() throws javax.jms.JMSException
javax.jms.JMSException
public Collection<NevadoTemporaryTopic> listAllTemporaryTopics() throws javax.jms.JMSException
javax.jms.JMSException
public Collection<NevadoTemporaryQueue> deleteUnusedTemporaryQueues(String suffix) throws javax.jms.JMSException
javax.jms.JMSException
public Collection<NevadoTemporaryTopic> deleteUnusedTemporaryTopics(String suffix) throws javax.jms.JMSException
javax.jms.JMSException
public String subscribe(NevadoTopic topic, NevadoQueue topicEndpoint) throws javax.jms.JMSException
javax.jms.JMSException
public void unsubscribe(NevadoTopic topic) throws javax.jms.JMSException
javax.jms.JMSException
public SQSConnector getSQSConnector()
public String getClientID()
getClientID
in interface javax.jms.Connection
public void setClientID(String clientID) throws javax.jms.JMSException
setClientID
in interface javax.jms.Connection
javax.jms.JMSException
public void setOverrideJMSDeliveryMode(Integer jmsDeliveryMode) throws javax.jms.IllegalStateException
javax.jms.IllegalStateException
public void setOverrideJMSPriority(Integer jmsPriority) throws javax.jms.IllegalStateException
javax.jms.IllegalStateException
public void setOverrideJMSTTL(Long jmsTTL) throws javax.jms.IllegalStateException
javax.jms.IllegalStateException
public void setTemporaryQueueSuffix(String temporaryQueueSuffix)
public void setTemporaryTopicSuffix(String temporaryTopicSuffix)
public void setMaxPollWaitMs(long maxPollWaitMs)
protected long getMaxPollWaitMs()
public boolean isRunning()
public boolean isClosed()
protected void checkClosed() throws javax.jms.IllegalStateException
javax.jms.IllegalStateException
public String getConnectionID()
public void setDurableSubcriptionPrefixOveride(String durableSubcriptionPrefixOveride)
public String getDurableSubcriptionPrefixOveride()
Copyright © 2014. All Rights Reserved.