Package org.apache.qpid.jms.meta
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.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiongetId()Returns the assigned resource ID for this JmsResource instance.getState()voidSets or updates the current state of this resource.voidvisit(JmsResourceVistor visitor) Allows a visitor object to walk the resources and process them.
-
Method Details
-
getId
JmsResourceId getId()Returns the assigned resource ID for this JmsResource instance.- Returns:
- the assigned resource ID for this JmsResource instance.
-
visit
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
JmsResource.ResourceState getState()- Returns:
- the current state of this resource.
-
setState
Sets or updates the current state of this resource.- Parameters:
state- The new state to apply to this resource.
-