public class CorrelationKeySet
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
VERSION_1 |
static java.lang.String |
VERSION_2 |
Constructor and Description |
---|
CorrelationKeySet()
Default Constructor
|
CorrelationKeySet(java.lang.String canonicalForm)
Restores the state by parsing the given canonical form of correlation key set.
|
Modifier and Type | Method and Description |
---|---|
CorrelationKeySet |
add(CorrelationKey ck)
Adds a correlation key to this correlation key set.
|
void |
clear()
Removes all correlation keys in this correlation keys.
|
boolean |
contains(CorrelationKey correlationKey)
Returns true if this correlation key set contains the give correlation key.
|
boolean |
containsAll(CorrelationKeySet c)
Checks if this correlation key set contains all correlation keys from the given correlation key set.
|
boolean |
equals(java.lang.Object o) |
java.util.List<CorrelationKeySet> |
findSubSets()
Finds all subsets of this correlation key set.
|
boolean |
isEmpty()
Returns true if this correlation key set contains no correlation keys.
|
boolean |
isOpaque()
Checks if this correlation key set contains the opaque correlation key as the only key
in this correlation key set.
|
boolean |
isRoutableTo(CorrelationKeySet candidateKeySet,
boolean isAllRoute)
Checks if an incoming message with this correlation key set can be accepted by the given
correlation key set.
|
java.util.Iterator<CorrelationKey> |
iterator()
Returns an iterator on the correlation keys that this correlation key set contains.
|
void |
restore(java.lang.String canonicalForm)
Restores the state of this correlation key set from a canonical form.
|
java.lang.String |
toCanonicalString()
Returns a canonical form of this correlation key set.
|
java.lang.String |
toString() |
public static final java.lang.String VERSION_1
public static final java.lang.String VERSION_2
public CorrelationKeySet()
public CorrelationKeySet(java.lang.String canonicalForm)
canonicalForm
- canonical form of correlation key setpublic CorrelationKeySet add(CorrelationKey ck)
ck
- a correlation key to addpublic boolean isOpaque()
public boolean isRoutableTo(CorrelationKeySet candidateKeySet, boolean isAllRoute)
candidateKeySet
- a correlation key set stored in a routeisAllRoute
- use true if the route="all" is setpublic boolean containsAll(CorrelationKeySet c)
c
- a correlation key setpublic boolean isEmpty()
public boolean contains(CorrelationKey correlationKey)
correlationKey
- a correlation keypublic java.util.Iterator<CorrelationKey> iterator()
public void clear()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.util.List<CorrelationKeySet> findSubSets()
public java.lang.String toCanonicalString()
public java.lang.String toString()
toString
in class java.lang.Object
public void restore(java.lang.String canonicalForm)
canonicalForm
- a canonical form of correlation key set