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.Integer databeanVersion  
    static java.lang.Integer DATAROUTER_VERSION  
    java.lang.String nodeName  
    io.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.String getVersionedKeyString()  
    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>>
    DatarouterMemcachedKey
    parse​(java.lang.String string, java.lang.Class<PK> pkClass)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)