public class SagaInitializationPolicy extends Object
Modifier and Type | Field and Description |
---|---|
static SagaInitializationPolicy |
NONE
Value indicating there is no Initialization required
|
Constructor and Description |
---|
SagaInitializationPolicy(SagaCreationPolicy creationPolicy,
AssociationValue initialAssociationValue)
Creates an instance using the given
creationPolicy and initialAssociationValue . |
Modifier and Type | Method and Description |
---|---|
SagaCreationPolicy |
getCreationPolicy()
Returns the creation policy
|
AssociationValue |
getInitialAssociationValue()
Returns the initial association value for a newly created saga.
|
public static final SagaInitializationPolicy NONE
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 givenpublic SagaCreationPolicy getCreationPolicy()
public AssociationValue getInitialAssociationValue()
null
.Copyright © 2010–2018. All rights reserved.