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

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class org.apache.activemq.artemis.jms.client.ActiveMQDestination

      `ActiveMQDestination.TYPE`

  - ### Field Summary

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

      `name, QUEUE_QUALIFIED_PREFIX, TEMP_QUEUE_QUALIFED_PREFIX, TEMP_TOPIC_QUALIFED_PREFIX, TOPIC_QUALIFIED_PREFIX`

  - ### 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)`
    `boolean` | `equals(Object o)`
    `String` | `getTopicName()`
    `int` | `hashCode()`
    `String` | `toString()`

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

      `createDestination, createQueue, createQueueAddressFromName, createQueueNameForSharedSubscription, createQueueNameForSubscription, createTemporaryQueue, createTemporaryQueue, createTemporaryQueue, createTemporaryTopic, createTemporaryTopic, createTemporaryTopic, createTopic, createTopicAddressFromName, decomposeQueueNameForDurableSubscription, delete, fromPrefixedName, getAddress, getName, getReference, getSimpleAddress, getType, 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`

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `ActiveMQDestination`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `ActiveMQDestination`

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