Class PooledExecutorConfiguration

java.lang.Object
me.ehp246.aufjms.core.configuration.PooledExecutorConfiguration

public final class PooledExecutorConfiguration
extends java.lang.Object
Since:
1.0
Author:
Lei Yang
  • Constructor Summary

    Constructors
    Constructor Description
    PooledExecutorConfiguration()  
  • Method Summary

    Modifier and Type Method Description
    org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor pooledExecutor​(int poolSize)
    The executor must implement CallerRunsPolicy.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PooledExecutorConfiguration

      public PooledExecutorConfiguration()
  • Method Details

    • pooledExecutor

      @Bean("c2992a60-8357-441a-8b85-ebacf8182236") public org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor pooledExecutor​(@Value("${me.ehp246.aufjms.executor.poolSize:8}") int poolSize)
      The executor must implement CallerRunsPolicy.
      Parameters:
      poolSize -
      Returns: