Class FlakeIdLightIdImpl

  • All Implemented Interfaces:
    pro.fessional.wings.faceless.service.flakeid.FlakeIdService

    
    public class FlakeIdLightIdImpl
     implements FlakeIdService
                        
    - 41-bit(ms second)
    - (1) 21-bit(sequence), max=2M/ms
    - (2) 10-bit(block) + 12-bit(sequence), max=4K/ms
    
    Since:

    2022-07-20

    Author:

    trydofor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      long getId(@NotNull() String name) Get FlackId by name, may be case-insensitive, all lowercase is recommended.
      • Methods inherited from class pro.fessional.wings.faceless.service.flakeid.FlakeIdService

        getId
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FlakeIdLightIdImpl

        FlakeIdLightIdImpl(LightIdService lightIdService)
    • Method Detail

      • getId

         long getId(@NotNull() String name)

        Get FlackId by name, may be case-insensitive, all lowercase is recommended.