|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.saga.SagaInitializationPolicy
public class SagaInitializationPolicy
Describes the conditions under which a Saga should be created, and which AssociationValue it should be initialized with.
Field Summary | |
---|---|
static SagaInitializationPolicy |
NONE
Value indicating there is no Initialization required |
Constructor Summary | |
---|---|
SagaInitializationPolicy(SagaCreationPolicy creationPolicy,
AssociationValue initialAssociationValue)
Creates an instance using the given creationPolicy and initialAssociationValue . |
Method Summary | |
---|---|
SagaCreationPolicy |
getCreationPolicy()
Returns the creation policy |
AssociationValue |
getInitialAssociationValue()
Returns the initial association value for a newly created saga. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SagaInitializationPolicy NONE
Constructor Detail |
---|
public SagaInitializationPolicy(SagaCreationPolicy creationPolicy, AssociationValue initialAssociationValue)
creationPolicy
and initialAssociationValue
. To
indicate that no saga should be created, use NONE
instead of this constructor.
creationPolicy
- The policy describing the condition to create a new instanceinitialAssociationValue
- The association value a new Saga instance should be givenMethod Detail |
---|
public SagaCreationPolicy getCreationPolicy()
public AssociationValue getInitialAssociationValue()
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |