Package org.axonframework.messaging
Interface ScopeAware
- All Known Implementing Classes:
AbstractSagaManager,AggregateDeadlineCommandTranslator,AnnotatedSagaManager
public interface ScopeAware
Interface describing components which are
Scope aware. Provides functionality to check if a given component
can resolve a scope through a given ScopeDescriptor. If this holds, that component should be able to send a
Message to that Scope.- Since:
- 3.3
- Author:
- Steven van Beelen
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanResolve(ScopeDescriptor scopeDescription) Check whether this implementation can resolve aScopeobject based on the providedscopeDescription.voidsend(Message message, ProcessingContext context, ScopeDescriptor scopeDescription)
-
Method Details
-
send
void send(Message message, ProcessingContext context, ScopeDescriptor scopeDescription) throws Exception - Parameters:
message- TheMessageto be sent to aScope.context- TheProcessingContextin which themessageis being processed.scopeDescription- ADextendingScopeDescriptor, describing theScopeto send the givenmessageto.- Throws:
Exception- if sending themessagefailed. Might occur if the message handling process throws an exception.
-
canResolve
Check whether this implementation can resolve aScopeobject based on the providedscopeDescription. Will returntruein case it should be able to resolve the Scope andfalseif it cannot.- Parameters:
scopeDescription- aScopeDescriptordescribing theScopeto be resolved- Returns:
truein case it should be able to resolve the Scope andfalseif it cannot
-