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

org.infinispan.executors.WithinThreadExecutorFactory Maven / Gradle / Ivy

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

import org.infinispan.commons.executors.ExecutorFactory;
import org.infinispan.util.concurrent.WithinThreadExecutor;

import java.util.Properties;
import java.util.concurrent.ExecutorService;

/**
 * Executor factory that creates WithinThreadExecutor. This executor executes the tasks in the caller thread.
 *
 * @author Pedro Ruivo
 * @since 5.3
 */
public class WithinThreadExecutorFactory implements ExecutorFactory {

   @Override
   public ExecutorService getExecutor(Properties p) {
      return new WithinThreadExecutor();
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy