Interface UidGeneratorService

All Known Implementing Classes:
CachedUidGenerator, DefaultUidGenerator

public interface UidGeneratorService
https://github.com/wujun234/uid-generator-spring-boot-starter Represents a unique id generator.
Author:
yutianbao
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Get a unique ID
    parseUID(long uid)
    Parse the UID into elements which are used to generate the UID.
  • Method Details

    • getUID

      long getUID() throws UidGenerateException
      Get a unique ID
      Returns:
      UID
      Throws:
      UidGenerateException
    • parseUID

      String parseUID(long uid)
      Parse the UID into elements which are used to generate the UID.
      Such as timestamp and workerId and sequence...
      Parameters:
      uid -
      Returns:
      Parsed info