net.rubyeye.xmemcached.monitor.MemcachedClientNameHolder Maven / Gradle / Ivy
package net.rubyeye.xmemcached.monitor;
/**
* MemcachedClient insntance name holder
*
* @author dennis
*
*/
public class MemcachedClientNameHolder {
private static ThreadLocal cacheName = new ThreadLocal();
public static void setName(String name) {
cacheName.set(name);
}
public static String getName() {
return cacheName.get();
}
public static void clear() {
cacheName.remove();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy