public interface TopicConnection
extends jakarta.jms.TopicConnection
Modifier and Type | Method and Description |
---|---|
jakarta.jms.TopicSession |
createTopicSession(int acknowledgeMode)
Creates a
TopicSession object. |
jakarta.jms.TopicSession createTopicSession(int acknowledgeMode) throws jakarta.jms.JMSException
TopicSession
object.acknowledgeMode
- indicates whether the consumer or the client will acknowledge any messages it receives; Legal
values are Session.AUTO_ACKNOWLEDGE
, Session.CLIENT_ACKNOWLEDGE
,
Session.DUPS_OK_ACKNOWLEDGE
, and com.sun.messaging.jms.Session.NO_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.jakarta.jms.JMSException
Session.AUTO_ACKNOWLEDGE
,
Session.CLIENT_ACKNOWLEDGE
,
Session.DUPS_OK_ACKNOWLEDGE
,
Session.NO_ACKNOWLEDGE
Copyright (c) 2010, 2017 Oracle and/or its affiliates. All rights reserved.