org.infinispan.security.actions.GetDefaultExecutorServiceAction Maven / Gradle / Ivy
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