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

org.infinispan.security.actions.GetDefaultExecutorServiceAction Maven / Gradle / Ivy

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

import java.security.PrivilegedAction;

import org.infinispan.Cache;
import org.infinispan.distexec.DefaultExecutorService;
import org.infinispan.util.concurrent.WithinThreadExecutor;

/**
 * GetDefaultExecutorServiceAction.
 *
 * @author Tristan Tarrant
 * @since 7.0
 */
public class GetDefaultExecutorServiceAction implements PrivilegedAction {

   private final Cache cache;

   public GetDefaultExecutorServiceAction(Cache cache) {
      this.cache = cache;
   }

   @Override
   public DefaultExecutorService run() {
      return new DefaultExecutorService(cache, new WithinThreadExecutor());
   }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy