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