public class RedisUIDSequencer extends AbstractUIDSequencer
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
protected String |
namespace |
name
Constructor and Description |
---|
RedisUIDSequencer() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Cleanup callback
|
int |
getNext(String key)
For the given key returns the incremented UID which is also stored in the same sequence entry.
|
void |
init()
Init Sequencer
|
getName, initSequence, setName
protected static final org.apache.commons.logging.Log log
public RedisUIDSequencer()
public void init()
UIDSequencer
init
in interface UIDSequencer
init
in class AbstractUIDSequencer
public void dispose()
UIDSequencer
dispose
in interface UIDSequencer
dispose
in class AbstractUIDSequencer
public int getNext(String key)
UIDSequencer
getNext
in interface UIDSequencer
getNext
in class AbstractUIDSequencer
Copyright © 2015 Nuxeo SA. All rights reserved.