|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.saga.AssociationValue
public class AssociationValue
A combination of key and value by which a Saga can be found. Sagas are triggered by events that have a property that the saga is associated with. A single Association Value can lead to multiple Sagas, and a single Saga can be associated with multiple Association Values.
Two association values are considered equal when both their key and value are equal. For example, a Saga managing Orders could have a AssociationValue with key "orderId" and the order identifier as value.
| Constructor Summary | |
|---|---|
AssociationValue(String key,
String value)
Creates a Association Value instance with the given key and value. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
String |
getKey()
Returns the key of this association value. |
String |
getValue()
Returns the value of this association. |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AssociationValue(String key,
String value)
key and value.
key - The key of the Association Value. Usually indicates where the value comes from.value - The value corresponding to the key of the association. It is highly recommended to only use
serializable values.| Method Detail |
|---|
public String getKey()
public String getValue()
null.public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||