Modifier and Type | Class and Description |
---|---|
static class |
CounterId.CounterIdRecord |
static class |
CounterId.OneShotRenewer |
Modifier and Type | Field and Description |
---|---|
static int |
LENGTH |
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
bytes() |
int |
compareTo(CounterId o) |
boolean |
equals(java.lang.Object o) |
static CounterId |
fromInt(int n)
Function for test purposes, do not use otherwise.
|
static CounterId |
generate() |
static CounterId |
getLocalId() |
static java.util.List<CounterId.CounterIdRecord> |
getOldLocalCounterIds()
Return the list of old local counter id of this node.
|
int |
hashCode() |
boolean |
isLocalId() |
static void |
renewLocalId()
Renew the local counter id.
|
static void |
renewLocalId(long now) |
java.lang.String |
toString() |
static CounterId |
wrap(java.nio.ByteBuffer id) |
static CounterId |
wrap(java.nio.ByteBuffer bb,
int offset) |
public static final int LENGTH
public static CounterId getLocalId()
public static void renewLocalId()
public static void renewLocalId(long now)
public static java.util.List<CounterId.CounterIdRecord> getOldLocalCounterIds()
public static CounterId fromInt(int n)
public static CounterId wrap(java.nio.ByteBuffer id)
public static CounterId wrap(java.nio.ByteBuffer bb, int offset)
public static CounterId generate()
public java.nio.ByteBuffer bytes()
public boolean isLocalId()
public int compareTo(CounterId o)
compareTo
in interface java.lang.Comparable<CounterId>
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2013 The Apache Software Foundation