Class ComplianceDependency
java.lang.Object
com.persequor.saga.modules.compliance.model.ComplianceDependency
- Direct Known Subclasses:
EpcComplianceDependency
-
Constructor Summary
ConstructorsConstructorDescriptionComplianceDependency
(String repo, UUID eventId, Set<IMessageType> messageTypes) ComplianceDependency
(String repo, UUID eventId, Set<IMessageType> messageTypes, MessageStatus... acceptedStates) Use this constructor if you want to return a ComplianceDependency, which will accept any of the MessageStatuses provided as part of acceptedStatesComplianceDependency
(String repo, UUID eventId, Set<IMessageType> messageTypes, String message) -
Method Summary
Modifier and TypeMethodDescriptionboolean
accepts
(MessageStatus compliance) boolean
getId()
getRepo()
int
hashCode()
static String
messageTypesToString
(Set<IMessageType> messageTypes) void
setDependor
(String dependor)
-
Constructor Details
-
ComplianceDependency
-
ComplianceDependency
public ComplianceDependency(String repo, UUID eventId, Set<IMessageType> messageTypes, String message) -
ComplianceDependency
public ComplianceDependency(String repo, UUID eventId, Set<IMessageType> messageTypes, MessageStatus... acceptedStates) Use this constructor if you want to return a ComplianceDependency, which will accept any of the MessageStatuses provided as part of acceptedStates- Parameters:
repo
- repository IdeventId
- saga event IdmessageTypes
- is the messageTypes that is depended on to be in one of the accepted statesacceptedStates
- is the states that will be accepted.
-
-
Method Details