public final class SIDGenerator extends Object
Session IDs are long values that must be unique on the same JVM. Each call of the
returns an unique ID (unique relative to the current running JVM).
public static long next()
On the first 32 bits we put an integer value incremented at each call and that is reset to 0 when the it reaches the max integer range.
On the last 32 bits the most significant part of the current timestamp in milliseconds.
Copyright © 2016 Nuxeo SA. All rights reserved.