Class DistributedExecutorService

java.lang.Object
cn.sliew.carp.example.redisson.service.DistributedExecutorService
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean

@Service public class DistributedExecutorService extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.BeanFactoryAware
  • Constructor Details

    • DistributedExecutorService

      public DistributedExecutorService()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Throws:
      org.springframework.beans.BeansException
    • cancel

      public Boolean cancel(String taskId)
    • submitCallable

      public String submitCallable(String input) throws ExecutionException, InterruptedException
      Throws:
      ExecutionException
      InterruptedException
    • scheduleRunnable

      public void scheduleRunnable(String input)
    • scheduleLambda

      public void scheduleLambda(String input)
    • scheduleRunnableWithCron

      public void scheduleRunnableWithCron(String input)