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, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final int DEFAULT_MAX_RETRY_ATTEMPTS
public static final long DEFAULT_RETRY_DELAY_IN_MILLISECONDS
public CompletableFuture<CamelSagaCoordinator> newSaga()
newSaga
in interface CamelSagaService
public CompletableFuture<CamelSagaCoordinator> getSaga(String id)
getSaga
in interface CamelSagaService
public void registerStep(CamelSagaStep step)
registerStep
in interface CamelSagaService
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.service.BaseService
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.support.service.BaseService
Exception
public ScheduledExecutorService getExecutorService()
public void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext
in interface org.apache.camel.CamelContextAware
public org.apache.camel.CamelContext getCamelContext()
getCamelContext
in interface org.apache.camel.CamelContextAware
public int getMaxRetryAttempts()
public void setMaxRetryAttempts(int maxRetryAttempts)
public long getRetryDelayInMilliseconds()
public void setRetryDelayInMilliseconds(long retryDelayInMilliseconds)
Apache Camel