public abstract class ConsumeDestinationImp extends java.lang.Object implements ConsumeDestination
Partial implementation of ConsumeDestination
containing
behaviour common to all implementations.
Constructor and Description |
---|
ConsumeDestinationImp() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getConfiguredThreadName()
Returns the configured thread name.
|
java.lang.String |
getDeliveryThreadName()
Returns the name to use for the delivery thread.
|
java.lang.String |
getUniqueId()
Returns the unique ID of this destination.
|
protected static boolean |
notNull(java.lang.String s) |
void |
setConfiguredThreadName(java.lang.String s)
Set a delivery thread name to use.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDestination, getFilterExpression, setDestination, setFilterExpression
public final java.lang.String getUniqueId()
The unique ID is based on the destination, filter expression and configured thread name.
getUniqueId
in interface ConsumeDestination
ConsumeDestination.getUniqueId()
public final java.lang.String getDeliveryThreadName()
ConsumeDestination
Returns the name to use for the delivery thread. This method needs to be
moved to Workflow
or AdaptrisMessageConsumer
.
getDeliveryThreadName
in interface ConsumeDestination
public final void setConfiguredThreadName(java.lang.String s)
Set a delivery thread name to use.
s
- the delivery thread name to use, may not be nullpublic final java.lang.String getConfiguredThreadName()
Returns the configured thread name.
protected static boolean notNull(java.lang.String s)