public class SolQueueConnection extends SolConnection implements QueueConnection
| Constructor and Description |
|---|
SolQueueConnection(JMSProperties properties,
boolean connectionTypeXA) |
SolQueueConnection(JMSProperties properties,
boolean connectionTypeXA,
String username,
String password) |
| Modifier and Type | Method and Description |
|---|---|
ConnectionConsumer |
createConnectionConsumer(Queue queue,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages)
Creates a connection consumer for this connection (optional operation).
|
ConnectionConsumer |
createDurableConnectionConsumer(Topic topic,
String subscriptionName,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages)
Create a durable connection consumer for this connection (optional operation).
|
QueueSession |
createQueueSession(boolean transacted,
int acknowledgeMode)
Creates a
QueueSession object. |
addConnectionConsumer, close, createConnectionConsumer, createDefaultSubscriber, createSession, deleteTemporaryQueue, deleteTemporaryTopic, getClientID, getClientName, getExceptionListener, getJCSMPProperties, getJMSProperties, getJMSState, getMetaData, getProperties, handleEvent, onException, remove, removeConnectionConsumer, setClientID, setConnectionEventListener, setExceptionListener, start, stop, toJCSMPPropertiesequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, createConnectionConsumer, createSession, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stoppublic SolQueueConnection(JMSProperties properties, boolean connectionTypeXA, String username, String password) throws JMSException
JMSExceptionpublic SolQueueConnection(JMSProperties properties, boolean connectionTypeXA) throws JMSException
JMSExceptionpublic ConnectionConsumer createConnectionConsumer(Queue queue, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException
QueueConnectioncreateConnectionConsumer in interface QueueConnectionqueue - the queue to accessmessageSelector - only messages with properties matching the
message selector expression are delivered. A value of null or
an empty string indicates that there is no message selector
for the message consumer.sessionPool - the server session pool to associate with this
connection consumermaxMessages - the maximum number of messages that can be
assigned to a server session at one timeJMSException - if the QueueConnection object fails
to create a connection consumer due to some
internal error or invalid arguments for
sessionPool and
messageSelector.InvalidDestinationException - if an invalid queue is specified.InvalidSelectorException - if the message selector is invalid.ConnectionConsumerpublic QueueSession createQueueSession(boolean transacted, int acknowledgeMode) throws JMSException
QueueConnectionQueueSession object.createQueueSession in interface QueueConnectiontransacted - indicates whether the session is transacted.
Supported Since 5.1 SolOS-TR.acknowledgeMode - indicates whether the consumer or the
client will acknowledge any messages it receives; ignored if the session
is transacted. Legal values are Session.AUTO_ACKNOWLEDGE,
Session.CLIENT_ACKNOWLEDGE,
Session.DUPS_OK_ACKNOWLEDGE, and
SupportedProperty.SOL_CLIENT_ACKNOWLEDGE.JMSException - if the QueueConnection object fails
to create a session due to some internal error or
lack of support for the specific transaction
and acknowledgement mode.Session.AUTO_ACKNOWLEDGE,
Session.CLIENT_ACKNOWLEDGE,
Session.DUPS_OK_ACKNOWLEDGE,
SupportedProperty.SOL_CLIENT_ACKNOWLEDGEpublic ConnectionConsumer createDurableConnectionConsumer(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException
ConnectioncreateDurableConnectionConsumer in interface ConnectioncreateDurableConnectionConsumer in class SolConnectiontopic - topic to accesssubscriptionName - durable subscription namemessageSelector - only messages with properties matching the
message selector expression are delivered. A value of null or
an empty string indicates that there is no message selector
for the message consumer.sessionPool - the server session pool to associate with this
durable connection consumermaxMessages - the maximum number of messages that can be
assigned to a server session at one timeJMSException - if the Connection object fails
to create a connection consumer due to some
internal error or invalid arguments for
sessionPool and
messageSelector.InvalidDestinationException - if an invalid destination
is specified.InvalidSelectorException - if the message selector is invalid.ConnectionConsumerCopyright 2004-2020 Solace Corporation. All rights reserved.