Package org.apache.qpid.jms.meta
Interface JmsResource
-
- All Known Implementing Classes:
JmsAbstractResource,JmsConnectionInfo,JmsConsumerInfo,JmsProducerInfo,JmsSessionInfo,JmsTemporaryDestination,JmsTemporaryQueue,JmsTemporaryTopic,JmsTransactionInfo
public interface JmsResourceBase class for the JMS object representing JMS resources such as Connection, Session, etc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classJmsResource.ResourceState
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JmsResourceIdgetId()Returns the assigned resource ID for this JmsResource instance.JmsResource.ResourceStategetState()voidsetState(JmsResource.ResourceState state)Sets or updates the current state of this resource.voidvisit(JmsResourceVistor visitor)Allows a visitor object to walk the resources and process them.
-
-
-
Method Detail
-
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 java.lang.Exception
Allows a visitor object to walk the resources and process them.- Parameters:
visitor- The visitor instance that is processing this resource.- Throws:
java.lang.Exception- if an error occurs while visiting this resource.
-
getState
JmsResource.ResourceState 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.
-
-