Package net.rubyeye.xmemcached.utils
Class OpaqueGenerater
- java.lang.Object
-
- net.rubyeye.xmemcached.utils.OpaqueGenerater
-
public final class OpaqueGenerater extends java.lang.Object
Opaque generator for memcached binary xxxq(getq,addq etc.) commands
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
OpaqueGenerater.SingletonHolder
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.atomic.AtomicInteger
counter
-
Constructor Summary
Constructors Modifier Constructor Description private
OpaqueGenerater()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OpaqueGenerater
getInstance()
int
getNextValue()
void
setValue(int v)
-
-
-
Method Detail
-
getInstance
public static OpaqueGenerater getInstance()
-
setValue
public void setValue(int v)
-
getNextValue
public int getNextValue()
-
-