public class Generator extends Object
| Modifier and Type | Method and Description |
|---|---|
static Generator |
create(Integer generatorInstanceId,
Integer maxHistoryNumber) |
String |
getNewId() |
String |
getNewId(Date idTime) |
String |
getNewId(java.time.Instant instant) |
Long |
getNewLongId() |
Long |
getNewLongId(Date idTime) |
Long |
getNewLongId(java.time.Instant idTime) |
public static Generator create(Integer generatorInstanceId, Integer maxHistoryNumber) throws IdGenerationException
IdGenerationExceptionpublic Long getNewLongId() throws IdGenerationException
IdGenerationExceptionpublic Long getNewLongId(Date idTime) throws IdGenerationException
IdGenerationExceptionpublic Long getNewLongId(java.time.Instant idTime) throws IdGenerationException
IdGenerationExceptionpublic String getNewId() throws IdGenerationException
IdGenerationExceptionpublic String getNewId(Date idTime) throws IdGenerationException
IdGenerationExceptionpublic String getNewId(java.time.Instant instant) throws IdGenerationException
IdGenerationExceptionCopyright © 2021. All rights reserved.