Class AbstractAllStrategyCorrelationInfo
java.lang.Object
io.serverlessworkflow.impl.persistence.AbstractAllStrategyCorrelationInfo
- All Implemented Interfaces:
io.serverlessworkflow.impl.scheduler.AllStrategyCorrelationInfo,AutoCloseable
- Direct Known Subclasses:
OperationAllStrategyCorrelationInfo,StoreAllStrategyCorrelationInfo
public abstract class AbstractAllStrategyCorrelationInfo
extends Object
implements io.serverlessworkflow.impl.scheduler.AllStrategyCorrelationInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final io.serverlessworkflow.impl.WorkflowDefinition -
Constructor Summary
ConstructorsConstructorDescriptionAbstractAllStrategyCorrelationInfo(io.serverlessworkflow.impl.WorkflowDefinition definition, PersistenceExecutor executor) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMetadata(io.serverlessworkflow.impl.WorkflowInstance instance, Map<io.serverlessworkflow.impl.events.EventRegistrationBuilder, io.cloudevents.CloudEvent> events) voidcorrelate(io.serverlessworkflow.impl.events.EventRegistrationBuilder reg, io.cloudevents.CloudEvent event) protected abstract Collection<Map<io.serverlessworkflow.impl.events.EventRegistrationBuilder,io.cloudevents.CloudEvent>> doTransaction(Function<CorrelationOperations, Collection<Map<io.serverlessworkflow.impl.events.EventRegistrationBuilder, io.cloudevents.CloudEvent>>> function) protected StringgenerateIdFromReg(io.serverlessworkflow.impl.events.EventRegistrationBuilder reg) voidinit(Collection<io.serverlessworkflow.impl.events.EventRegistrationBuilder> regs, Consumer<Map<io.serverlessworkflow.impl.events.EventRegistrationBuilder, io.cloudevents.CloudEvent>> starter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.serverlessworkflow.impl.scheduler.AllStrategyCorrelationInfo
close
-
Field Details
-
definition
protected final io.serverlessworkflow.impl.WorkflowDefinition definition
-
-
Constructor Details
-
AbstractAllStrategyCorrelationInfo
public AbstractAllStrategyCorrelationInfo(io.serverlessworkflow.impl.WorkflowDefinition definition, PersistenceExecutor executor)
-
-
Method Details
-
correlate
public void correlate(io.serverlessworkflow.impl.events.EventRegistrationBuilder reg, io.cloudevents.CloudEvent event) - Specified by:
correlatein interfaceio.serverlessworkflow.impl.scheduler.AllStrategyCorrelationInfo
-
init
public void init(Collection<io.serverlessworkflow.impl.events.EventRegistrationBuilder> regs, Consumer<Map<io.serverlessworkflow.impl.events.EventRegistrationBuilder, io.cloudevents.CloudEvent>> starter) - Specified by:
initin interfaceio.serverlessworkflow.impl.scheduler.AllStrategyCorrelationInfo
-
addMetadata
public void addMetadata(io.serverlessworkflow.impl.WorkflowInstance instance, Map<io.serverlessworkflow.impl.events.EventRegistrationBuilder, io.cloudevents.CloudEvent> events) - Specified by:
addMetadatain interfaceio.serverlessworkflow.impl.scheduler.AllStrategyCorrelationInfo
-
doTransaction
protected abstract Collection<Map<io.serverlessworkflow.impl.events.EventRegistrationBuilder,io.cloudevents.CloudEvent>> doTransaction(Function<CorrelationOperations, Collection<Map<io.serverlessworkflow.impl.events.EventRegistrationBuilder, io.cloudevents.CloudEvent>>> function) -
generateIdFromReg
-