public class InMemorySagaService
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.saga.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<org.apache.camel.saga.CamelSagaCoordinator> |
getSaga(String id) |
CompletableFuture<org.apache.camel.saga.CamelSagaCoordinator> |
newSaga() |
void |
registerStep(org.apache.camel.saga.CamelSagaStep step) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setMaxRetryAttempts(int maxRetryAttempts) |
void |
setRetryDelayInMilliseconds(long retryDelayInMilliseconds) |
doInit, doResume, doShutdown, doSuspend, getStatus, init, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public static final int DEFAULT_MAX_RETRY_ATTEMPTS
public static final long DEFAULT_RETRY_DELAY_IN_MILLISECONDS
public CompletableFuture<org.apache.camel.saga.CamelSagaCoordinator> newSaga()
newSaga
in interface org.apache.camel.saga.CamelSagaService
public CompletableFuture<org.apache.camel.saga.CamelSagaCoordinator> getSaga(String id)
getSaga
in interface org.apache.camel.saga.CamelSagaService
public void registerStep(org.apache.camel.saga.CamelSagaStep step)
registerStep
in interface org.apache.camel.saga.CamelSagaService
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.service.ServiceSupport
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.support.service.ServiceSupport
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