public final class ConfiguredConsumeDestination extends ConsumeDestinationImp
Basic implementation of ConsumeDestination
. Equality (as used by WorkflowList
to determine whether a
duplicate Workflow
may be added is based on the equality of String
destination AND String
filter.
In the adapter configuration file this class is aliased as configured-consume-destination which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
ConfiguredConsumeDestination()
Creates a new instance.
|
ConfiguredConsumeDestination(java.lang.String dest)
Creates a new instance.
|
ConfiguredConsumeDestination(java.lang.String dest,
java.lang.String filter)
Creates a new instance.
|
ConfiguredConsumeDestination(java.lang.String dest,
java.lang.String filter,
java.lang.String threadname) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Semantic equality is based on equality of the underlying
String destination name and String filter
expressions. |
java.lang.String |
getDestination()
Returns the name of the destination.
|
java.lang.String |
getFilterExpression()
Returns the filter expression to use.
|
int |
hashCode()
The hash code of instances of
ConsumeDestination is the hash
code of the underlying String destination name and
String filter expression. |
void |
setDestination(java.lang.String s)
Sets the name of the destination.
|
void |
setFilterExpression(java.lang.String s)
Sets the filter expression to use.
|
getConfiguredThreadName, getDeliveryThreadName, getUniqueId, notNull, setConfiguredThreadName
public ConfiguredConsumeDestination()
Creates a new instance.
public ConfiguredConsumeDestination(java.lang.String dest)
Creates a new instance.
dest
- the destination namepublic ConfiguredConsumeDestination(java.lang.String dest, java.lang.String filter)
Creates a new instance.
dest
- the destination namefilter
- the filter expressionpublic ConfiguredConsumeDestination(java.lang.String dest, java.lang.String filter, java.lang.String threadname)
public boolean equals(java.lang.Object obj)
Semantic equality is based on equality of the underlying
String
destination name and String
filter
expressions.
equals
in class java.lang.Object
obj
- the Object
to test for equalityobj
is semantically equalpublic int hashCode()
The hash code of instances of ConsumeDestination
is the hash
code of the underlying String
destination name and
String
filter expression.
hashCode
in class java.lang.Object
public void setDestination(java.lang.String s)
ConsumeDestination
Sets the name of the destination.
s
- the name of the destination#setDestination(java.lang.String)
public java.lang.String getDestination()
ConsumeDestination
Returns the name of the destination.
ConsumeDestination.getDestination()
public void setFilterExpression(java.lang.String s)
ConsumeDestination
Sets the filter expression to use.
s
- the filter expression to use#setFilterExpression(java.lang.String)
public java.lang.String getFilterExpression()
ConsumeDestination
Returns the filter expression to use.
ConsumeDestination.getFilterExpression()