Package me.ahoo.cosid

Interface StringIdGenerator

All Known Subinterfaces:
CosIdGenerator, IdGenerator, IdGeneratorDecorator, SegmentId, SnowflakeFriendlyId, SnowflakeId
All Known Implementing Classes:
AbstractSnowflakeId, AtomicLongGenerator, ClockSyncCosIdGenerator, ClockSyncSnowflakeId, DefaultSegmentId, DefaultSnowflakeFriendlyId, IntegerIdGenerator, LazyIdGenerator, MillisecondSnowflakeId, MockIdGenerator, Radix36CosIdGenerator, Radix62CosIdGenerator, RadixCosIdGenerator, SecondSnowflakeId, SegmentChainId, StringIdGeneratorDecorator, StringSegmentId, StringSnowflakeId, UncertaintyIdGenerator, UuidGenerator

@ThreadSafe public interface StringIdGenerator
String type ID generator.
  • Method Summary

    Modifier and Type
    Method
    Description
    Generate string type distributed ID.
  • Method Details

    • generateAsString

      @Nonnull String generateAsString()
      Generate string type distributed ID.
      Returns:
      string type distributed ID