package org.craft.atom.rpc.spi;

import java.util.concurrent.Executor;

import org.craft.atom.protocol.rpc.model.RpcMethod;

/**
 * RPC executor factory
 * 
 * @author mindwind
 * @version 1.0, Aug 11, 2014
 */
public interface RpcExecutorFactory {
	
	/**
	 * Get a new (or reusable) executor.
	 * 
	 * @param rpcInterface
	 * @param rpcMethod
	 * @return executor
	 */
	Executor getExecutor(Class<?> rpcInterface, RpcMethod rpcMethod);
	
}

@@ -62,16 +62,23 @@
 Executor
+Service
 ;%0A%0Aimpor
@@ -379,16 +379,23 @@
 Executor
+Service
  getExec

fix - return ExcutorService not Executor