public interface _SequenceNumberGenerator
Define the interface that can generate next or retrieve current sequence number
Modifier and Type | Interface and Description |
---|---|
static class |
_SequenceNumberGenerator.InMemorySequenceNumberGenerator |
Modifier and Type | Method and Description |
---|---|
void |
configure(AppConfig config,
DbServiceManager dbManager)
Configure the sequence generator
|
long |
get(java.lang.String name)
Returns the current sequence number
|
long |
next(java.lang.String name)
Generate next sequence number
|
long next(java.lang.String name)
Generate next sequence number
name
- the name of the sequencelong get(java.lang.String name)
Returns the current sequence number
name
- the name of the sequencevoid configure(AppConfig config, DbServiceManager dbManager)
Configure the sequence generator
Copyright © 2014–2017 ActFramework. All rights reserved.