## Uses of Interface
javax.jms.Topic

- Packages that use Topic
  Package | Description
  --- | ---
  javax.jms | The Java Message Service (JMS) API provides a common way for Java programs to create, send, receive and read an enterprise messaging system's messages.

- - ### Uses of Topic in javax.jms

    Subinterfaces of Topic in javax.jms
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `TemporaryTopic` A `TemporaryTopic` object is a unique `Topic` object created for the duration of a `Connection`.

    Methods in javax.jms that return Topic
    Modifier and Type | Method and Description
    --- | ---
    `Topic` | TopicSession.`createTopic(String topicName)` Creates a topic identity given a `Topic` name.
    `Topic` | Session.`createTopic(String topicName)` Creates a `Topic` object which encapsulates a specified provider-specific topic name.
    `Topic` | JMSContext.`createTopic(String topicName)` Creates a `Topic` object which encapsulates a specified provider-specific topic name.
    `Topic` | TopicSubscriber.`getTopic()` Gets the `Topic` associated with this subscriber.
    `Topic` | TopicPublisher.`getTopic()` Gets the topic associated with this `TopicPublisher`.

    Methods in javax.jms with parameters of type Topic
    Modifier and Type | Method and Description
    --- | ---
    `ConnectionConsumer` | TopicConnection.`createConnectionConsumer(Topic topic, String messageSelector, ServerSessionPool sessionPool, int maxMessages)` Creates a connection consumer for this connection (optional operation).
    `ConnectionConsumer` | TopicConnection.`createDurableConnectionConsumer(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages)` Create a durable connection consumer for this connection (optional operation).
    `ConnectionConsumer` | Connection.`createDurableConnectionConsumer(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages)` Creates a connection consumer for this connection (optional operation) on the specific topic using an unshared durable subscription with the specified name.
    `MessageConsumer` | Session.`createDurableConsumer(Topic topic, String name)` Creates an unshared durable subscription on the specified topic (if one does not already exist) and creates a consumer on that durable subscription.
    `JMSConsumer` | JMSContext.`createDurableConsumer(Topic topic, String name)` Creates an unshared durable subscription on the specified topic (if one does not already exist) and creates a consumer on that durable subscription.
    `MessageConsumer` | Session.`createDurableConsumer(Topic topic, String name, String messageSelector, boolean noLocal)` Creates an unshared durable subscription on the specified topic (if one does not already exist), specifying a message selector and the `noLocal` parameter, and creates a consumer on that durable subscription.
    `JMSConsumer` | JMSContext.`createDurableConsumer(Topic topic, String name, String messageSelector, boolean noLocal)` Creates an unshared durable subscription on the specified topic (if one does not already exist), specifying a message selector and the `noLocal` parameter, and creates a consumer on that durable subscription.
    `TopicSubscriber` | TopicSession.`createDurableSubscriber(Topic topic, String name)` Creates an unshared durable subscription on the specified topic (if one does not already exist) and creates a consumer on that durable subscription.
    `TopicSubscriber` | Session.`createDurableSubscriber(Topic topic, String name)` Creates an unshared durable subscription on the specified topic (if one does not already exist) and creates a consumer on that durable subscription.
    `TopicSubscriber` | TopicSession.`createDurableSubscriber(Topic topic, String name, String messageSelector, boolean noLocal)` Creates an unshared durable subscription on the specified topic (if one does not already exist), specifying a message selector and the `noLocal` parameter, and creates a consumer on that durable subscription.
    `TopicSubscriber` | Session.`createDurableSubscriber(Topic topic, String name, String messageSelector, boolean noLocal)` Creates an unshared durable subscription on the specified topic (if one does not already exist), specifying a message selector and the `noLocal` parameter, and creates a consumer on that durable subscription.
    `TopicPublisher` | TopicSession.`createPublisher(Topic topic)` Creates a publisher for the specified topic.
    `ConnectionConsumer` | Connection.`createSharedConnectionConsumer(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages)` Creates a connection consumer for this connection (optional operation) on the specific topic using a shared non-durable subscription with the specified name.
    `MessageConsumer` | Session.`createSharedConsumer(Topic topic, String sharedSubscriptionName)` Creates a shared non-durable subscription with the specified name on the specified topic (if one does not already exist) and creates a consumer on that subscription.
    `JMSConsumer` | JMSContext.`createSharedConsumer(Topic topic, String sharedSubscriptionName)` Creates a shared non-durable subscription with the specified name on the specified topic (if one does not already exist) and creates a consumer on that subscription.
    `MessageConsumer` | Session.`createSharedConsumer(Topic topic, String sharedSubscriptionName, String messageSelector)` Creates a shared non-durable subscription with the specified name on the specified topic (if one does not already exist) specifying a message selector, and creates a consumer on that subscription.
    `JMSConsumer` | JMSContext.`createSharedConsumer(Topic topic, String sharedSubscriptionName, String messageSelector)` Creates a shared non-durable subscription with the specified name on the specified topic (if one does not already exist) specifying a message selector, and creates a consumer on that subscription.
    `ConnectionConsumer` | Connection.`createSharedDurableConnectionConsumer(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages)` Creates a connection consumer for this connection (optional operation) on the specific topic using a shared durable subscription with the specified name.
    `MessageConsumer` | Session.`createSharedDurableConsumer(Topic topic, String name)` Creates a shared durable subscription on the specified topic (if one does not already exist), specifying a message selector and the `noLocal` parameter, and creates a consumer on that durable subscription.
    `JMSConsumer` | JMSContext.`createSharedDurableConsumer(Topic topic, String name)` Creates a shared durable subscription on the specified topic (if one does not already exist), specifying a message selector, and creates a consumer on that durable subscription.
    `MessageConsumer` | Session.`createSharedDurableConsumer(Topic topic, String name, String messageSelector)` Creates a shared durable subscription on the specified topic (if one does not already exist), specifying a message selector, and creates a consumer on that durable subscription.
    `JMSConsumer` | JMSContext.`createSharedDurableConsumer(Topic topic, String name, String messageSelector)` Creates a shared durable subscription on the specified topic (if one does not already exist), specifying a message selector, and creates a consumer on that durable subscription.
    `TopicSubscriber` | TopicSession.`createSubscriber(Topic topic)` Creates a nondurable subscriber to the specified topic.
    `TopicSubscriber` | TopicSession.`createSubscriber(Topic topic, String messageSelector, boolean noLocal)` Creates a nondurable subscriber to the specified topic, using a message selector or specifying whether messages published by its own connection should be delivered to it.
    `void` | TopicPublisher.`publish(Topic topic, Message message)` Publishes a message to a topic for an unidentified message producer.
    `void` | TopicPublisher.`publish(Topic topic, Message message, int deliveryMode, int priority, long timeToLive)` Publishes a message to a topic for an unidentified message producer, specifying delivery mode, priority and time to live.

    Constructors in javax.jms with parameters of type Topic
    Constructor and Description
    `TopicRequestor(TopicSession session, Topic topic)` Constructor for the `TopicRequestor` class.

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.