public class InMemorySagaService extends org.apache.camel.support.service.ServiceSupport implements CamelSagaService
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_RETRY_ATTEMPTS |
static long |
DEFAULT_RETRY_DELAY_IN_MILLISECONDS |
| Constructor and Description |
|---|
InMemorySagaService() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
org.apache.camel.CamelContext |
getCamelContext() |
ScheduledExecutorService |
getExecutorService() |
int |
getMaxRetryAttempts() |
long |
getRetryDelayInMilliseconds() |
CompletableFuture<CamelSagaCoordinator> |
getSaga(String id) |
CompletableFuture<CamelSagaCoordinator> |
newSaga() |
void |
registerStep(CamelSagaStep step) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setMaxRetryAttempts(int maxRetryAttempts) |
void |
setRetryDelayInMilliseconds(long retryDelayInMilliseconds) |
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final int DEFAULT_MAX_RETRY_ATTEMPTS
public static final long DEFAULT_RETRY_DELAY_IN_MILLISECONDS
public CompletableFuture<CamelSagaCoordinator> newSaga()
newSaga in interface CamelSagaServicepublic CompletableFuture<CamelSagaCoordinator> getSaga(String id)
getSaga in interface CamelSagaServicepublic void registerStep(CamelSagaStep step)
registerStep in interface CamelSagaServiceprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.service.BaseServiceExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.service.BaseServiceExceptionpublic ScheduledExecutorService getExecutorService()
public void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext in interface org.apache.camel.CamelContextAwarepublic org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface org.apache.camel.CamelContextAwarepublic int getMaxRetryAttempts()
public void setMaxRetryAttempts(int maxRetryAttempts)
public long getRetryDelayInMilliseconds()
public void setRetryDelayInMilliseconds(long retryDelayInMilliseconds)
Apache Camel