Class WorkflowPersistenceListener
java.lang.Object
io.serverlessworkflow.impl.persistence.WorkflowPersistenceListener
- All Implemented Interfaces:
io.serverlessworkflow.impl.lifecycle.WorkflowExecutionCompletableListener,io.serverlessworkflow.impl.ServicePriority,AutoCloseable,Comparable<io.serverlessworkflow.impl.ServicePriority>
public class WorkflowPersistenceListener
extends Object
implements io.serverlessworkflow.impl.lifecycle.WorkflowExecutionCompletableListener
-
Field Summary
Fields inherited from interface io.serverlessworkflow.impl.ServicePriority
DEFAULT_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiononTaskCompleted(io.serverlessworkflow.impl.lifecycle.TaskCompletedEvent ev) onTaskRetried(io.serverlessworkflow.impl.lifecycle.TaskRetriedEvent ev) onTaskStarted(io.serverlessworkflow.impl.lifecycle.TaskStartedEvent ev) onWorkflowCancelled(io.serverlessworkflow.impl.lifecycle.WorkflowCancelledEvent ev) onWorkflowCompleted(io.serverlessworkflow.impl.lifecycle.WorkflowCompletedEvent ev) onWorkflowFailed(io.serverlessworkflow.impl.lifecycle.WorkflowFailedEvent ev) onWorkflowResumed(io.serverlessworkflow.impl.lifecycle.WorkflowResumedEvent ev) onWorkflowStarted(io.serverlessworkflow.impl.lifecycle.WorkflowStartedEvent ev) onWorkflowSuspended(io.serverlessworkflow.impl.lifecycle.WorkflowSuspendedEvent ev) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.serverlessworkflow.impl.ServicePriority
compareTo, priorityMethods inherited from interface io.serverlessworkflow.impl.lifecycle.WorkflowExecutionCompletableListener
close, onTaskCancelled, onTaskFailed, onTaskResumed, onTaskSuspended, onWorkflowStatusChanged
-
Constructor Details
-
WorkflowPersistenceListener
-
-
Method Details
-
onWorkflowStarted
public CompletableFuture<?> onWorkflowStarted(io.serverlessworkflow.impl.lifecycle.WorkflowStartedEvent ev) - Specified by:
onWorkflowStartedin interfaceio.serverlessworkflow.impl.lifecycle.WorkflowExecutionCompletableListener
-
onWorkflowFailed
public CompletableFuture<?> onWorkflowFailed(io.serverlessworkflow.impl.lifecycle.WorkflowFailedEvent ev) - Specified by:
onWorkflowFailedin interfaceio.serverlessworkflow.impl.lifecycle.WorkflowExecutionCompletableListener
-
onWorkflowCancelled
public CompletableFuture<?> onWorkflowCancelled(io.serverlessworkflow.impl.lifecycle.WorkflowCancelledEvent ev) - Specified by:
onWorkflowCancelledin interfaceio.serverlessworkflow.impl.lifecycle.WorkflowExecutionCompletableListener
-
onWorkflowSuspended
public CompletableFuture<?> onWorkflowSuspended(io.serverlessworkflow.impl.lifecycle.WorkflowSuspendedEvent ev) - Specified by:
onWorkflowSuspendedin interfaceio.serverlessworkflow.impl.lifecycle.WorkflowExecutionCompletableListener
-
onWorkflowResumed
public CompletableFuture<?> onWorkflowResumed(io.serverlessworkflow.impl.lifecycle.WorkflowResumedEvent ev) - Specified by:
onWorkflowResumedin interfaceio.serverlessworkflow.impl.lifecycle.WorkflowExecutionCompletableListener
-
onWorkflowCompleted
public CompletableFuture<?> onWorkflowCompleted(io.serverlessworkflow.impl.lifecycle.WorkflowCompletedEvent ev) - Specified by:
onWorkflowCompletedin interfaceio.serverlessworkflow.impl.lifecycle.WorkflowExecutionCompletableListener
-
onTaskStarted
- Specified by:
onTaskStartedin interfaceio.serverlessworkflow.impl.lifecycle.WorkflowExecutionCompletableListener
-
onTaskCompleted
public CompletableFuture<?> onTaskCompleted(io.serverlessworkflow.impl.lifecycle.TaskCompletedEvent ev) - Specified by:
onTaskCompletedin interfaceio.serverlessworkflow.impl.lifecycle.WorkflowExecutionCompletableListener
-
onTaskRetried
- Specified by:
onTaskRetriedin interfaceio.serverlessworkflow.impl.lifecycle.WorkflowExecutionCompletableListener
-