com.google.code.yanf4j.util.DispatcherFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xmemcached Show documentation
Show all versions of xmemcached Show documentation
Extreme performance modern memcached client for java
package com.google.code.yanf4j.util;
import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.TimeUnit;
import com.google.code.yanf4j.core.impl.PoolDispatcher;
/**
* Dispatcher Factory
*
* @author dennis
*
*/
public class DispatcherFactory {
public static com.google.code.yanf4j.core.Dispatcher newDispatcher(
int size, RejectedExecutionHandler rejectedExecutionHandler,String prefix) {
if (size > 0) {
return new PoolDispatcher(size, 60, TimeUnit.SECONDS,
rejectedExecutionHandler,prefix);
} else {
return null;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy