接口 IdGenerator


  • public interface IdGenerator
    Id generator.
    作者:
    liaochuntao
    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      long currentId()
      current id info.
      java.util.Map<java.lang.Object,​java.lang.Object> info()
      Returns information for the current IDGenerator.
      void init()
      Perform the corresponding initialization operation.
      long nextId()
      Get next id.
      long workerId()
      worker id info.
    • 方法详细资料

      • init

        void init()
        Perform the corresponding initialization operation.
      • currentId

        long currentId()
        current id info.
        返回:
        current id
      • workerId

        long workerId()
        worker id info.
        返回:
        worker id
      • nextId

        long nextId()
        Get next id.
        返回:
        next id
      • info

        java.util.Map<java.lang.Object,​java.lang.Object> info()
        Returns information for the current IDGenerator.
        返回:
        Map