public class Sequencer extends Object
It is multi-thread safe, and has high performance.
它是线程安全的,而且性能高。
Modifier and Type | Field and Description |
---|---|
protected AtomicLong |
currentValue |
protected AtomicLong currentValue
public Sequencer(long initialValue)
initialValue
- the first value that will be returned by next()public Sequencer()
Copyright © 2014. All Rights Reserved.