public final class ObjectId128 extends Object implements Serializable
A globally unique identifier for objects.
Consists of 128bit(16 bytes), divided as follows:
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| time | machine | pid | inc | ||||||||||||
Instances of this class are immutable.
| Constructor and Description |
|---|
ObjectId128(io.netty.buffer.ByteBuf buffer) |
ObjectId128(long timestamp,
long union) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long |
getTimestamp() |
long |
getUnion() |
int |
hashCode() |
static void |
main(String[] args) |
static ObjectId128 |
next()
Gets a new object id.
|
String |
toHexString()
128位编码, 长度为32
|
String |
toString() |
void |
writeTo(io.netty.buffer.ByteBuf buffer) |
public ObjectId128(long timestamp,
long union)
public ObjectId128(io.netty.buffer.ByteBuf buffer)
public static ObjectId128 next()
public static void main(String[] args)
public long getTimestamp()
public long getUnion()
public void writeTo(io.netty.buffer.ByteBuf buffer)
public String toHexString()
Copyright © 2019. All rights reserved.