Class Executor


  • @Component
    public class Executor
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.slf4j.Logger log  
    • Constructor Summary

      Constructors 
      Constructor Description
      Executor​(long maxSize, long timeout)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(java.lang.String id, java.lang.Runnable task)  
      void preDestroy()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • log

        public static final org.slf4j.Logger log
    • Constructor Detail

      • Executor

        public Executor​(@Value("${spring.data.elasticsearch.executors.size:500}")
                        long maxSize,
                        @Value("${spring.data.elasticsearch.executors.timeout:5}")
                        long timeout)
    • Method Detail

      • preDestroy

        @PreDestroy
        public void preDestroy()
                        throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • execute

        public void execute​(java.lang.String id,
                            java.lang.Runnable task)