org.apache.activemq.artemis.jms.persistence.config

## Class PersistedDestination

- java.lang.Object
- - org.apache.activemq.artemis.jms.persistence.config.PersistedDestination

- All Implemented Interfaces:
    EncodingSupport

      public class PersistedDestination
      extends Object
      implements EncodingSupport

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PersistedDestination()`
    `PersistedDestination(PersistedType type, String name)`
    `PersistedDestination(PersistedType type, String name, String selector, boolean durable)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `decode(ActiveMQBuffer buffer)`
    `void` | `encode(ActiveMQBuffer buffer)`
    `int` | `getEncodeSize()`
    `long` | `getId()`
    `String` | `getName()`
    `String` | `getSelector()`
    `PersistedType` | `getType()`
    `boolean` | `isDurable()`
    `void` | `setId(long id)`

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

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PersistedDestination

          public PersistedDestination()

    - #### PersistedDestination

          public PersistedDestination(PersistedType type,
                                      String name)

    - #### PersistedDestination

          public PersistedDestination(PersistedType type,
                                      String name,
                                      String selector,
                                      boolean durable)

  - ### Method Detail

    - #### getId

          public long getId()

    - #### setId

          public void setId(long id)

    - #### getName

          public String getName()

    - #### getType

          public PersistedType getType()

    - #### getSelector

          public String getSelector()

    - #### isDurable

          public boolean isDurable()

    - #### getEncodeSize

          public int getEncodeSize()

      Specified by:
        `getEncodeSize` in interface `EncodingSupport`

    - #### encode

          public void encode(ActiveMQBuffer buffer)

      Specified by:
        `encode` in interface `EncodingSupport`

    - #### decode

          public void decode(ActiveMQBuffer buffer)

      Specified by:
        `decode` in interface `EncodingSupport`

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