Class Token

    • Constructor Detail

      • Token

        public Token()
    • Method Detail

      • getHeapSize

        public abstract long getHeapSize()
      • getTokenValue

        public abstract java.lang.Object getTokenValue()
      • size

        public abstract double size​(Token next)
        Returns a measure for the token space covered between this token and next. Used by the token allocation algorithm (see CASSANDRA-7032).
      • increaseSlightly

        public abstract Token increaseSlightly()
        Returns a token that is slightly greater than this. Used to avoid clashes between nodes in separate datacentres trying to use the same token via the token allocation algorithm.