| 程序包 | 说明 |
|---|---|
| com.ms.tools.core.id.factory.tsid |
| 限定符和类型 | 方法和说明 |
|---|---|
static TsidFactory.Builder |
TsidFactory.builder()
Returns a builder object.
|
TsidFactory.Builder |
TsidFactory.Builder.withClock(java.time.Clock clock)
Set the clock to be used in tests.
|
TsidFactory.Builder |
TsidFactory.Builder.withCustomEpoch(java.time.Instant customEpoch)
Set the custom epoch.
|
TsidFactory.Builder |
TsidFactory.Builder.withNode(Integer node)
Set the node identifier.
|
TsidFactory.Builder |
TsidFactory.Builder.withNodeBits(Integer nodeBits)
Set the node identifier bits length within the range 0 to 20.
|
TsidFactory.Builder |
TsidFactory.Builder.withRandom(Random random)
Set the random generator.
|
TsidFactory.Builder |
TsidFactory.Builder.withRandomFunction(java.util.function.IntFunction<byte[]> randomFunction)
Set the random function.
|
TsidFactory.Builder |
TsidFactory.Builder.withRandomFunction(java.util.function.IntSupplier randomFunction)
Set the random function.
|
Copyright © 2024. All rights reserved.