Package org.apache.qpid.jms.meta
Class JmsAbstractResource
- java.lang.Object
-
- org.apache.qpid.jms.meta.JmsAbstractResource
-
- All Implemented Interfaces:
JmsResource
- Direct Known Subclasses:
JmsConnectionInfo,JmsConsumerInfo,JmsProducerInfo,JmsSessionInfo,JmsTransactionInfo
public abstract class JmsAbstractResource extends Object implements JmsResource
Abstract resource class for JmsResource instances.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.qpid.jms.meta.JmsResource
JmsResource.ResourceState
-
-
Constructor Summary
Constructors Constructor Description JmsAbstractResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JmsResource.ResourceStategetState()booleanisClosed()voidsetState(JmsResource.ResourceState state)Sets or updates the current state of this resource.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.qpid.jms.meta.JmsResource
getId, visit
-
-
-
-
Method Detail
-
getState
public JmsResource.ResourceState getState()
- Specified by:
getStatein interfaceJmsResource- Returns:
- the current state of this resource.
-
setState
public void setState(JmsResource.ResourceState state)
Description copied from interface:JmsResourceSets or updates the current state of this resource.- Specified by:
setStatein interfaceJmsResource- Parameters:
state- The new state to apply to this resource.
-
isClosed
public boolean isClosed()
-
-