Class InMemorySagaService

  • All Implemented Interfaces:
    AutoCloseable, org.apache.camel.CamelContextAware, CamelSagaService, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

    public class InMemorySagaService
    extends org.apache.camel.support.service.ServiceSupport
    implements CamelSagaService
    An in-memory implementation of a saga service.
    • Field Detail

      • DEFAULT_MAX_RETRY_ATTEMPTS

        public static final int DEFAULT_MAX_RETRY_ATTEMPTS
        See Also:
        Constant Field Values
      • DEFAULT_RETRY_DELAY_IN_MILLISECONDS

        public static final long DEFAULT_RETRY_DELAY_IN_MILLISECONDS
        See Also:
        Constant Field Values
    • Constructor Detail

      • InMemorySagaService

        public InMemorySagaService()
    • Method Detail

      • doStart

        protected void doStart()
                        throws Exception
        Overrides:
        doStart in class org.apache.camel.support.service.BaseService
        Throws:
        Exception
      • doStop

        protected void doStop()
                       throws Exception
        Overrides:
        doStop in class org.apache.camel.support.service.BaseService
        Throws:
        Exception
      • setCamelContext

        public void setCamelContext​(org.apache.camel.CamelContext camelContext)
        Specified by:
        setCamelContext in interface org.apache.camel.CamelContextAware
      • getCamelContext

        public org.apache.camel.CamelContext getCamelContext()
        Specified by:
        getCamelContext in interface org.apache.camel.CamelContextAware
      • getMaxRetryAttempts

        public int getMaxRetryAttempts()
      • setMaxRetryAttempts

        public void setMaxRetryAttempts​(int maxRetryAttempts)
      • getRetryDelayInMilliseconds

        public long getRetryDelayInMilliseconds()
      • setRetryDelayInMilliseconds

        public void setRetryDelayInMilliseconds​(long retryDelayInMilliseconds)