public class NodeIdGenerator extends Object
| Modifier and Type | Method and Description |
|---|---|
static NodeIdGenerator |
getGenerator()
Returns the NodeIdGenerator singleton.
|
long |
getNextNodeId(String scope)
Returns the next ID to be used for the current Thread.
|
static void |
reset()
Reset all scope IDs to 0 for the current Thread.
|
static void |
reset(String scope)
Reset the given scope IDs to 0 for the current Thread.
|
public static NodeIdGenerator getGenerator()
public long getNextNodeId(String scope)
scope - public static void reset(String scope)
scope - public static void reset()
Copyright © 2007-2017 The Apache Software Foundation