Class AbstractAsyncPersistenceExecutor
java.lang.Object
io.serverlessworkflow.impl.persistence.AbstractAsyncPersistenceExecutor
- All Implemented Interfaces:
PersistenceExecutor,AutoCloseable
- Direct Known Subclasses:
AsyncPersistenceExecutor
public abstract class AbstractAsyncPersistenceExecutor
extends Object
implements PersistenceExecutor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> CompletableFuture<T>protected abstract Optional<ExecutorService>Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.serverlessworkflow.impl.persistence.PersistenceExecutor
close
-
Constructor Details
-
AbstractAsyncPersistenceExecutor
public AbstractAsyncPersistenceExecutor()
-
-
Method Details
-
execute
public CompletableFuture<Void> execute(Runnable runnable, io.serverlessworkflow.impl.WorkflowDefinitionData definition) - Specified by:
executein interfacePersistenceExecutor
-
execute
public <T> CompletableFuture<T> execute(Supplier<T> runnable, io.serverlessworkflow.impl.WorkflowDefinitionData definition) - Specified by:
executein interfacePersistenceExecutor
-
executorService
-