*/
public class DispatcherFactory {
public static com.google.code.hs4j.network.core.Dispatcher newDispatcher(
int size, RejectedExecutionHandler rejectedExecutionHandler,String prefix) {
if (size > 0) {
return new PoolDispatcher(size, 60, TimeUnit.SECONDS,
rejectedExecutionHandler,prefix);
} else {
return null;
}
}