Class AtomicLongGenerator

java.lang.Object
me.ahoo.cosid.jvm.AtomicLongGenerator
All Implemented Interfaces:
IdGenerator, Statistical, StringIdGenerator

public class AtomicLongGenerator extends Object implements IdGenerator
AtomicLong Generator.
  • Field Details

  • Constructor Details

    • AtomicLongGenerator

      public AtomicLongGenerator()
  • Method Details

    • generate

      public long generate()
      Description copied from interface: IdGenerator
      Generate distributed ID.
      Specified by:
      generate in interface IdGenerator
      Returns:
      generated distributed ID