org.apache.activemq.artemis.jms.client

## Class ActiveMQTopic

- java.lang.Object
- - org.apache.activemq.artemis.jms.client.ActiveMQDestination
  - - org.apache.activemq.artemis.jms.client.ActiveMQTopic

- All Implemented Interfaces:
    Serializable, javax.jms.Destination, javax.jms.Topic, Referenceable
  Direct Known Subclasses:
    ActiveMQTemporaryTopic

      public class ActiveMQTopic
      extends ActiveMQDestination
      implements javax.jms.Topic

  ActiveMQ Artemis implementation of a JMS Topic.
  This class can be instantiated directly.
  See Also:
    Serialized Form

- - ### Field Summary

    - ### Fields inherited from class org.apache.activemq.artemis.jms.client.ActiveMQDestination

      `JMS_QUEUE_ADDRESS_PREFIX, JMS_TEMP_QUEUE_ADDRESS_PREFIX, JMS_TEMP_TOPIC_ADDRESS_PREFIX, JMS_TOPIC_ADDRESS_PREFIX, name, QUEUE_QUALIFIED_PREFIX, QUEUE_TYPE, TEMP_MASK, TEMP_QUEUE_QUALIFED_PREFIX, TEMP_QUEUE_TYPE, TEMP_TOPIC_QUALIFED_PREFIX, TEMP_TOPIC_TYPE, TOPIC_QUALIFIED_PREFIX, TOPIC_TYPE`

  - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `` | `ActiveMQTopic(String name)`
    `` | `ActiveMQTopic(String name, boolean temporary)`
    `protected` | `ActiveMQTopic(String address, String name, boolean temporary, ActiveMQSession session)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static SimpleString` | `createAddressFromName(String name)`
    `String` | `getTopicName()`
    `String` | `toString()`

    - ### Methods inherited from class org.apache.activemq.artemis.jms.client.ActiveMQDestination

      `createDestination, createQueue, createQueueAddressFromName, createQueueNameForDurableSubscription, createQueueNameForSharedSubscription, createTemporaryQueue, createTemporaryQueue, createTemporaryQueue, createTemporaryTopic, createTemporaryTopic, createTemporaryTopic, createTopic, createTopicAddressFromName, decomposeQueueNameForDurableSubscription, delete, equals, fromAddress, getAddress, getName, getReference, getSimpleAddress, hashCode, isQueue, isTemporary`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### ActiveMQTopic

          public ActiveMQTopic(String name)

    - #### ActiveMQTopic

          public ActiveMQTopic(String name,
                               boolean temporary)

    - #### ActiveMQTopic

          protected ActiveMQTopic(String address,
                                  String name,
                                  boolean temporary,
                                  ActiveMQSession session)

      Parameters:
        `address` -
        `name` -
        `temporary` -
        `session` -

  - ### Method Detail

    - #### createAddressFromName

          public static SimpleString createAddressFromName(String name)

    - #### getTopicName

          public String getTopicName()

      Specified by:
        `getTopicName` in interface `javax.jms.Topic`

    - #### toString

          public String toString()

      Specified by:
        `toString` in interface `javax.jms.Topic`
      Overrides:
        `toString` in class `Object`

Copyright © 2017 The Apache Software Foundation. All rights reserved.