public class UniqueRequestId extends Object
Modifier and Type | Field and Description |
---|---|
private String |
id |
private static AtomicLong |
sequenceCounter |
private static String |
serverId |
Modifier | Constructor and Description |
---|---|
private |
UniqueRequestId(String serverId,
long timestamp,
long sequence) |
Modifier and Type | Method and Description |
---|---|
static UniqueRequestId |
next()
Creates a session id which is unique across the cluster this runtime is a member of each time this is called.
|
String |
toString() |
private static final String serverId
private static final AtomicLong sequenceCounter
private final String id
private UniqueRequestId(String serverId, long timestamp, long sequence)
public static UniqueRequestId next()
Copyright © 2017. All rights reserved.