Package org.axonframework.messaging
Interface ScopeAware
- All Known Subinterfaces:
Repository<T>
- All Known Implementing Classes:
AbstractRepository,AbstractSagaManager,AnnotatedSagaManager,CachingEventSourcingRepository,EventSourcingRepository,GenericJpaRepository,GenericJpaRepository,LockingRepository
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, ScopeDescriptor scopeDescription)
-
Method Details
-
send
- Parameters:
message- aMessageto be send to aScopescopeDescription- 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
-