package org.infinispan.commons.executors;

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

/**
 * Used to configure and create executors which are aware of the current security context
 *
 * @author Tristan Tarrant
 * @since 7.0
 */
public interface SecurityAwareExecutorFactory extends ExecutorFactory {
   ExecutorService getExecutor(Properties p, AccessControlContext context);
}
