Class MicronautExecutorFactory

java.lang.Object
io.micronaut.cache.infinispan.MicronautExecutorFactory
All Implemented Interfaces:
org.infinispan.commons.executors.ExecutorFactory

@Singleton public class MicronautExecutorFactory extends Object implements org.infinispan.commons.executors.ExecutorFactory
An ExecutorFactory implementation based on the existing IO ExecutorService bean.
Since:
1.0.0
Author:
Álvaro Sánchez-Mariscal
  • Constructor Details

    • MicronautExecutorFactory

      public MicronautExecutorFactory(@Named("io") ExecutorService executorService)
      Parameters:
      executorService - the executor service
  • Method Details

    • getExecutor

      public ExecutorService getExecutor(Properties p)
      Specified by:
      getExecutor in interface org.infinispan.commons.executors.ExecutorFactory