Uses of Class
com.github.f4b6a3.tsid.TsidFactory.Builder
-
-
Uses of TsidFactory.Builder in com.github.f4b6a3.tsid
Methods in com.github.f4b6a3.tsid that return TsidFactory.Builder Modifier and Type Method Description static TsidFactory.BuilderTsidFactory. builder()Returns a builder object.TsidFactory.BuilderTsidFactory.Builder. withClock(Clock clock)Set the clock to be used in tests.TsidFactory.BuilderTsidFactory.Builder. withCustomEpoch(Instant customEpoch)Set the custom epoch.TsidFactory.BuilderTsidFactory.Builder. withNode(Integer node)Set the node identifier.TsidFactory.BuilderTsidFactory.Builder. withNodeBits(Integer nodeBits)Set the node identifier bits length within the range 0 to 20.TsidFactory.BuilderTsidFactory.Builder. withRandom(Random random)Set the random generator.TsidFactory.BuilderTsidFactory.Builder. withRandomFunction(IntFunction<byte[]> randomFunction)Set the random function.TsidFactory.BuilderTsidFactory.Builder. withRandomFunction(IntSupplier randomFunction)Set the random function.
-