public interface UIDSequencer
| Modifier and Type | Method and Description | 
|---|---|
void | 
dispose()
Cleanup callback 
 | 
String | 
getName()
Gets the sequencer name. 
 | 
int | 
getNext(String key)
Deprecated. 
 
since 9.10 use  
getNextLong(String) instead. | 
default List<Long> | 
getNextBlock(String key,
            int blockSize)
Returns a block containing  
blockSize sequences. | 
long | 
getNextLong(String key)
Extends  
getNext(java.lang.String) to return a long value. | 
void | 
init()
Init Sequencer 
 | 
void | 
initSequence(String key,
            int id)
Deprecated. 
 
since 9.10 use  
initSequence(String, long) instead. | 
void | 
initSequence(String key,
            long id)
Initializes the sequencer with the given key to at least the given long id. 
 | 
void | 
setName(String name)
Sets the sequencer name. 
 | 
void init()
void initSequence(String key, long id)
A sequence can only be incremented, so if its current id is greater than the given id the sequence won't be decremented to reach the given id.
@Deprecated void initSequence(String key, int id)
initSequence(String, long) instead.@Deprecated int getNext(String key)
getNextLong(String) instead.long getNextLong(String key)
getNext(java.lang.String) to return a long value. This method is compatible
 with getNext in the integer range.default List<Long> getNextBlock(String key, int blockSize)
blockSize sequences.void dispose()
Copyright © 2019 Nuxeo. All rights reserved.