All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.configuration.global.ThreadPoolConfiguration Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.configuration.global;

import java.util.concurrent.ThreadFactory;

import org.infinispan.commons.executors.ThreadPoolExecutorFactory;

/**
 * @author Galder Zamarreño
 */
public class ThreadPoolConfiguration {

   private final ThreadFactory threadFactory;
   private final ThreadPoolExecutorFactory threadPoolFactory;

   protected ThreadPoolConfiguration(ThreadFactory threadFactory, ThreadPoolExecutorFactory threadPoolFactory) {
      this.threadFactory = threadFactory;
      this.threadPoolFactory = threadPoolFactory;
   }

   public  T threadPoolFactory() {
      return (T) threadPoolFactory;
   }

   public  T threadFactory() {
      return (T) threadFactory;
   }

   @Override
   public String toString() {
      return "ThreadPoolConfiguration{" +
            "threadFactory=" + threadFactory +
            ", threadPoolFactory=" + threadPoolFactory +
            '}';
   }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy