public class Snowflake extends Object
| Modifier and Type | Field and Description |
|---|---|
static short |
MAX_NODE |
static short |
MAX_SEQUENCE |
static int |
NODE_SHIFT |
static int |
SEQ_SHIFT |
| Constructor and Description |
|---|
Snowflake(int node)
A snowflake is designed to operate as a singleton instance within the context of a node.
|
public static final int NODE_SHIFT
public static final int SEQ_SHIFT
public static final short MAX_NODE
public static final short MAX_SEQUENCE
public Snowflake(int node)
node - This is an id you use to differentiate different nodes.Copyright © 2014. All Rights Reserved.