public class Token extends Object implements IToken, Comparable<Token>
Created by zlokhandwala on 4/7/17.
Modifier and Type | Field and Description |
---|---|
static Token |
UNINITIALIZED |
Constructor and Description |
---|
Token() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Token o) |
static Token |
min(Token a,
Token b)
Given two tokens return the min
|
static Token |
of(long epoch,
long sequence) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBackpointerMap, getEpoch, getSequence
public static final Token UNINITIALIZED
public int compareTo(Token o)
compareTo
in interface Comparable<Token>
public static Token min(Token a, Token b)
a
- first tokenb
- second tokenpublic static Token of(long epoch, long sequence)
Copyright © 2019 CorfuDB. All rights reserved.