Class DatarouterMemcachedKey
java.lang.Object
io.datarouter.client.memcached.client.DatarouterMemcachedKey
public class DatarouterMemcachedKey
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description java.lang.IntegerdatabeanVersionstatic java.lang.IntegerDATAROUTER_VERSIONjava.lang.StringnodeNameio.datarouter.model.key.primary.PrimaryKey<?>primaryKey -
Constructor Summary
Constructors Constructor Description DatarouterMemcachedKey(java.lang.String nodeName, java.lang.Integer databeanVersion, io.datarouter.model.key.primary.PrimaryKey<?> primaryKey) -
Method Summary
Modifier and Type Method Description java.lang.StringgetVersionedKeyString()static java.util.List<java.lang.String>getVersionedKeyStrings(java.lang.String nodeName, int version, java.util.Collection<? extends io.datarouter.model.key.primary.PrimaryKey<?>> pks)static <PK extends io.datarouter.model.key.primary.PrimaryKey<PK>>
DatarouterMemcachedKeyparse(java.lang.String string, java.lang.Class<PK> pkClass)
-
Field Details
-
DATAROUTER_VERSION
public static final java.lang.Integer DATAROUTER_VERSION -
nodeName
public final java.lang.String nodeName -
databeanVersion
public final java.lang.Integer databeanVersion -
primaryKey
public final io.datarouter.model.key.primary.PrimaryKey<?> primaryKey
-
-
Constructor Details
-
DatarouterMemcachedKey
public DatarouterMemcachedKey(java.lang.String nodeName, java.lang.Integer databeanVersion, io.datarouter.model.key.primary.PrimaryKey<?> primaryKey)
-
-
Method Details
-
getVersionedKeyString
public java.lang.String getVersionedKeyString() -
getVersionedKeyStrings
public static java.util.List<java.lang.String> getVersionedKeyStrings(java.lang.String nodeName, int version, java.util.Collection<? extends io.datarouter.model.key.primary.PrimaryKey<?>> pks) -
parse
public static <PK extends io.datarouter.model.key.primary.PrimaryKey<PK>> DatarouterMemcachedKey parse(java.lang.String string, java.lang.Class<PK> pkClass)
-