Class DefaultScheduledPollConsumerScheduler

java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.DefaultScheduledPollConsumerScheduler
All Implemented Interfaces:
AutoCloseable, org.apache.camel.CamelContextAware, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasCamelContext, org.apache.camel.spi.ScheduledPollConsumerScheduler, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

public class DefaultScheduledPollConsumerScheduler extends org.apache.camel.support.service.ServiceSupport implements org.apache.camel.spi.ScheduledPollConsumerScheduler
The default scheduler for ScheduledPollConsumer.
  • Constructor Details

    • DefaultScheduledPollConsumerScheduler

      public DefaultScheduledPollConsumerScheduler()
    • DefaultScheduledPollConsumerScheduler

      public DefaultScheduledPollConsumerScheduler(ScheduledExecutorService scheduledExecutorService)
  • Method Details

    • getCamelContext

      public org.apache.camel.CamelContext getCamelContext()
      Specified by:
      getCamelContext in interface org.apache.camel.spi.HasCamelContext
    • setCamelContext

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

      public long getInitialDelay()
    • setInitialDelay

      public void setInitialDelay(long initialDelay)
    • getDelay

      public long getDelay()
    • setDelay

      public void setDelay(long delay)
    • getTimeUnit

      public TimeUnit getTimeUnit()
    • setTimeUnit

      public void setTimeUnit(TimeUnit timeUnit)
    • isUseFixedDelay

      public boolean isUseFixedDelay()
    • setUseFixedDelay

      public void setUseFixedDelay(boolean useFixedDelay)
    • getScheduledExecutorService

      public ScheduledExecutorService getScheduledExecutorService()
    • setScheduledExecutorService

      public void setScheduledExecutorService(ScheduledExecutorService scheduledExecutorService)
    • getConcurrentConsumers

      public int getConcurrentConsumers()
    • setConcurrentConsumers

      public void setConcurrentConsumers(int concurrentConsumers)
    • getPoolSize

      public int getPoolSize()
    • setPoolSize

      public void setPoolSize(int poolSize)
    • onInit

      public void onInit(org.apache.camel.Consumer consumer)
      Specified by:
      onInit in interface org.apache.camel.spi.ScheduledPollConsumerScheduler
    • scheduleTask

      public void scheduleTask(Runnable task)
      Specified by:
      scheduleTask in interface org.apache.camel.spi.ScheduledPollConsumerScheduler
    • unscheduleTask

      public void unscheduleTask()
      Specified by:
      unscheduleTask in interface org.apache.camel.spi.ScheduledPollConsumerScheduler
    • startScheduler

      public void startScheduler()
      Specified by:
      startScheduler in interface org.apache.camel.spi.ScheduledPollConsumerScheduler
    • isSchedulerStarted

      public boolean isSchedulerStarted()
      Specified by:
      isSchedulerStarted in interface org.apache.camel.spi.ScheduledPollConsumerScheduler
    • 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