public class SolTopicConnection extends SolConnection implements TopicConnection
| Constructor and Description |
|---|
SolTopicConnection(JMSProperties properties,
boolean connectionTypeXA) |
SolTopicConnection(JMSProperties properties,
boolean connectionTypeXA,
String username,
String password) |
| Modifier and Type | Method and Description |
|---|---|
ConnectionConsumer |
createConnectionConsumer(Topic topic,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages)
Creates a connection consumer for this connection (optional operation).
|
TopicSession |
createTopicSession(boolean transacted,
int acknowledgeMode)
Creates a
TopicSession object. |
addConnectionConsumer, close, createConnectionConsumer, createDefaultSubscriber, createDurableConnectionConsumer, 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, waitcreateDurableConnectionConsumerclose, createConnectionConsumer, createSession, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stoppublic SolTopicConnection(JMSProperties properties, boolean connectionTypeXA, String username, String password) throws JMSException
JMSExceptionpublic SolTopicConnection(JMSProperties properties, boolean connectionTypeXA) throws JMSException
JMSExceptionpublic ConnectionConsumer createConnectionConsumer(Topic topic, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException
TopicConnectioncreateConnectionConsumer in interface TopicConnectiontopic - the topic 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 TopicConnection object fails
to create a connection consumer due to some
internal error or invalid arguments for
sessionPool and
messageSelector.InvalidDestinationException - if an invalid topic is specified.InvalidSelectorException - if the message selector is invalid.ConnectionConsumerpublic TopicSession createTopicSession(boolean transacted, int acknowledgeMode) throws JMSException
TopicConnectionTopicSession object.createTopicSession in interface TopicConnectiontransacted - 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 TopicConnection 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_ACKNOWLEDGECopyright 2004-2020 Solace Corporation. All rights reserved.