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.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.CamelSagaServiceA Camel saga service based on Microprofile LRA (https://github.com/eclipse/microprofile-lra).
-
-
Constructor Summary
Constructors Constructor Description LRASagaService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoStart()protected voiddoStop()org.apache.camel.CamelContextgetCamelContext()LRAClientgetClient()StringgetCoordinatorContextPath()StringgetCoordinatorUrl()ScheduledExecutorServicegetExecutorService()StringgetLocalParticipantContextPath()StringgetLocalParticipantUrl()Set<String>getRegisteredURIs()CompletableFuture<org.apache.camel.saga.CamelSagaCoordinator>getSaga(String id)CompletableFuture<org.apache.camel.saga.CamelSagaCoordinator>newSaga()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)StringtoString()-
Methods inherited from class org.apache.camel.support.service.BaseService
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
newSaga
public CompletableFuture<org.apache.camel.saga.CamelSagaCoordinator> newSaga()
- Specified by:
newSagain interfaceorg.apache.camel.saga.CamelSagaService
-
getSaga
public CompletableFuture<org.apache.camel.saga.CamelSagaCoordinator> getSaga(String id)
- 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
protected void doStart() throws Exception- Overrides:
doStartin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
doStop
protected void doStop() throws Exception- 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.CamelContextAware
-
getExecutorService
public ScheduledExecutorService getExecutorService()
-
getClient
public LRAClient getClient()
-
getCoordinatorUrl
@ManagedAttribute(description="Coordinator URL") public String getCoordinatorUrl()
-
setCoordinatorUrl
public void setCoordinatorUrl(String coordinatorUrl)
-
getCoordinatorContextPath
@ManagedAttribute(description="Coordinator context-path") public String getCoordinatorContextPath()
-
setCoordinatorContextPath
public void setCoordinatorContextPath(String coordinatorContextPath)
-
getLocalParticipantUrl
@ManagedAttribute(description="Local participant URL") public String getLocalParticipantUrl()
-
setLocalParticipantUrl
public void setLocalParticipantUrl(String localParticipantUrl)
-
getLocalParticipantContextPath
@ManagedAttribute(description="Local participant context-path") public String getLocalParticipantContextPath()
-
setLocalParticipantContextPath
public void setLocalParticipantContextPath(String localParticipantContextPath)
-
-