T - The saga typepublic interface SagaModel<T>
T. Use the SagaModel to obtain associations and
 event handlers for the Saga.| Modifier and Type | Method and Description | 
|---|---|
List<SagaMethodMessageHandlingMember<T>> | 
findHandlerMethods(EventMessage<?> event)
Returns a List of  
event handlers that can handle the given event. | 
default boolean | 
hasHandlerMethod(EventMessage<?> eventMessage)
Indicates whether the Saga described by this model has a handler for the given  
eventMessage | 
SagaMetaModelFactory | 
modelFactory()
Returns the factory that created this model. 
 | 
Optional<AssociationValue> | 
resolveAssociation(EventMessage<?> eventMessage)
 | 
Optional<AssociationValue> resolveAssociation(EventMessage<?> eventMessage)
AssociationValue used to find sagas of type T that can handle the given eventMessage. If the saga type does not handle events of this type an empty Optional is returned.eventMessage - The event to find the association value forList<SagaMethodMessageHandlingMember<T>> findHandlerMethods(EventMessage<?> event)
event handlers that can handle the given event.event - The event to processdefault boolean hasHandlerMethod(EventMessage<?> eventMessage)
eventMessageeventMessage - The message to check the availability of a handler fortrue if there the Saga has a handler for this message, otherwise falseSagaMetaModelFactory modelFactory()
Copyright © 2010–2018. All rights reserved.