Interface JmsResource

All Known Implementing Classes:
JmsAbstractResource, JmsConnectionInfo, JmsConsumerInfo, JmsProducerInfo, JmsSessionInfo, JmsTemporaryDestination, JmsTemporaryQueue, JmsTemporaryTopic, JmsTransactionInfo

public interface JmsResource
Base class for the JMS object representing JMS resources such as Connection, Session, etc.
  • Method Details

    • getId

      JmsResourceId getId()
      Returns the assigned resource ID for this JmsResource instance.
      Returns:
      the assigned resource ID for this JmsResource instance.
    • visit

      void visit(JmsResourceVistor visitor) throws Exception
      Allows a visitor object to walk the resources and process them.
      Parameters:
      visitor - The visitor instance that is processing this resource.
      Throws:
      Exception - if an error occurs while visiting this resource.
    • getState

      Returns:
      the current state of this resource.
    • setState

      void setState(JmsResource.ResourceState state)
      Sets or updates the current state of this resource.
      Parameters:
      state - The new state to apply to this resource.