Class JmsTemporaryDestination

All Implemented Interfaces:
jakarta.jms.Destination, Externalizable, Serializable, Comparable<JmsDestination>, Referenceable, JmsResource
Direct Known Subclasses:
JmsTemporaryQueue, JmsTemporaryTopic

public abstract class JmsTemporaryDestination extends JmsDestination implements JmsResource
Temporary Destination Object
See Also:
  • Constructor Details

    • JmsTemporaryDestination

      public JmsTemporaryDestination()
    • JmsTemporaryDestination

      public JmsTemporaryDestination(String name, boolean topic)
  • Method Details

    • getId

      public JmsResourceId getId()
      Description copied from interface: JmsResource
      Returns the assigned resource ID for this JmsResource instance.
      Specified by:
      getId in interface JmsResource
      Returns:
      the assigned resource ID for this JmsResource instance.
    • getState

      public JmsResource.ResourceState getState()
      Specified by:
      getState in interface JmsResource
      Returns:
      the current state of this resource.
    • setState

      public void setState(JmsResource.ResourceState state)
      Description copied from interface: JmsResource
      Sets or updates the current state of this resource.
      Specified by:
      setState in interface JmsResource
      Parameters:
      state - The new state to apply to this resource.
    • tryDelete

      protected void tryDelete() throws jakarta.jms.JMSException
      Attempts to delete the destination if there is an assigned Connection object.
      Throws:
      jakarta.jms.JMSException - if an error occurs or the provider doesn't support delete of destinations from the client.
    • isDeleted

      protected boolean isDeleted() throws jakarta.jms.JMSException
      Throws:
      jakarta.jms.JMSException
    • visit

      public void visit(JmsResourceVistor visitor) throws Exception
      Description copied from interface: JmsResource
      Allows a visitor object to walk the resources and process them.
      Specified by:
      visit in interface JmsResource
      Parameters:
      visitor - The visitor instance that is processing this resource.
      Throws:
      Exception - if an error occurs while visiting this resource.