public class NodeIdGenerator
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static NodeIdGenerator |
getGenerator()
Returns the NodeIdGenerator singleton.
|
long |
getNextNodeId(java.lang.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(java.lang.String scope)
Reset the given scope IDs to 0 for the current Thread.
|
public static NodeIdGenerator getGenerator()
public long getNextNodeId(java.lang.String scope)
scope
- public static void reset(java.lang.String scope)
scope
- public static void reset()
Copyright © 2007-2017 The Apache Software Foundation