Package org.apache.camel.service.lra
Class LRASagaService
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.service.lra.LRASagaService
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.CamelContextAware,org.apache.camel.saga.CamelSagaService,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.spi.HasCamelContext,org.apache.camel.StatefulService,org.apache.camel.StaticService,org.apache.camel.SuspendableService
@JdkService("lra-saga-service")
@Configurer
@ManagedResource(description="Managed LRASagaService")
public class LRASagaService
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.StaticService, org.apache.camel.saga.CamelSagaService
A Camel saga service based on Microprofile LRA (https://github.com/eclipse/microprofile-lra).
-
Field Summary
Fields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LRAClientUse this method to override some behavior within the LRAClientprotected voiddoStart()protected voiddoStop()org.apache.camel.CamelContextCompletableFuture<org.apache.camel.saga.CamelSagaCoordinator> CompletableFuture<org.apache.camel.saga.CamelSagaCoordinator> newSaga(org.apache.camel.Exchange exchange) voidregisterStep(org.apache.camel.saga.CamelSagaStep step) voidsetCamelContext(org.apache.camel.CamelContext camelContext) voidsetCoordinatorContextPath(String coordinatorContextPath) voidsetCoordinatorUrl(String coordinatorUrl) voidsetLocalParticipantContextPath(String localParticipantContextPath) voidsetLocalParticipantUrl(String localParticipantUrl) toString()Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getInternalLock, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.camel.Service
build, close, init, start, stopMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Constructor Details
-
LRASagaService
public LRASagaService()
-
-
Method Details
-
newSaga
public CompletableFuture<org.apache.camel.saga.CamelSagaCoordinator> newSaga(org.apache.camel.Exchange exchange) - Specified by:
newSagain interfaceorg.apache.camel.saga.CamelSagaService
-
getSaga
- Specified by:
getSagain interfaceorg.apache.camel.saga.CamelSagaService
-
registerStep
public void registerStep(org.apache.camel.saga.CamelSagaStep step) - Specified by:
registerStepin interfaceorg.apache.camel.saga.CamelSagaService
-
doStart
- Overrides:
doStartin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
createLRAClient
Use this method to override some behavior within the LRAClient- Returns:
- the LRAClient to be used within the LRASagaService
-
doStop
- Overrides:
doStopin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext) - Specified by:
setCamelContextin interfaceorg.apache.camel.CamelContextAware
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()- Specified by:
getCamelContextin interfaceorg.apache.camel.spi.HasCamelContext
-
getExecutorService
-
getClient
-
getCoordinatorUrl
-
setCoordinatorUrl
-
getCoordinatorContextPath
-
setCoordinatorContextPath
-
getLocalParticipantUrl
-
setLocalParticipantUrl
-
getLocalParticipantContextPath
@ManagedAttribute(description="Local participant context-path") public String getLocalParticipantContextPath() -
setLocalParticipantContextPath
-
getRegisteredURIs
-
toString
-