public abstract class AbstractMessageHandler extends Object
Base implementation for a message handler (ie. MessageConsumer or MessageProducer)
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
closed |
protected AbstractConnection |
connection |
protected javax.jms.Destination |
destination |
protected ReadWriteLock |
externalAccessLock |
protected IntegerID |
id |
protected AbstractSession |
session |
| Constructor and Description |
|---|
AbstractMessageHandler(AbstractSession session,
javax.jms.Destination destination,
IntegerID handlerId)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkNotClosed()
Check that the session is not closed
|
void |
getEntitiesDescription(StringBuilder sb)
Get a description of entities held by this object
|
IntegerID |
getId()
Get the message handler unique ID
|
AbstractSession |
getSession()
Get the parent session
|
String |
toString() |
protected IntegerID id
protected AbstractConnection connection
protected AbstractSession session
protected javax.jms.Destination destination
protected boolean closed
protected ReadWriteLock externalAccessLock
public AbstractMessageHandler(AbstractSession session, javax.jms.Destination destination, IntegerID handlerId)
public final IntegerID getId()
public final AbstractSession getSession()
protected final void checkNotClosed()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic final void getEntitiesDescription(StringBuilder sb)
Copyright © 2021. All rights reserved.