Class SpringRedisMachineIdDistributor

java.lang.Object
me.ahoo.cosid.machine.AbstractMachineIdDistributor
me.ahoo.cosid.spring.redis.SpringRedisMachineIdDistributor
All Implemented Interfaces:
MachineIdDistributor

public class SpringRedisMachineIdDistributor extends AbstractMachineIdDistributor
Spring Redis MachineIdDistributor.

RedisMachineIdDistributor

  • Field Details

    • MACHINE_ID_DISTRIBUTE_SOURCE

      public static final org.springframework.core.io.Resource MACHINE_ID_DISTRIBUTE_SOURCE
    • MACHINE_ID_DISTRIBUTE

      public static final org.springframework.data.redis.core.script.RedisScript<List> MACHINE_ID_DISTRIBUTE
    • MACHINE_ID_REVERT_SOURCE

      public static final org.springframework.core.io.Resource MACHINE_ID_REVERT_SOURCE
    • MACHINE_ID_REVERT

      public static final org.springframework.data.redis.core.script.RedisScript<Long> MACHINE_ID_REVERT
    • MACHINE_ID_REVERT_STABLE_SOURCE

      public static final org.springframework.core.io.Resource MACHINE_ID_REVERT_STABLE_SOURCE
    • MACHINE_ID_REVERT_STABLE

      public static final org.springframework.data.redis.core.script.RedisScript<Long> MACHINE_ID_REVERT_STABLE
    • MACHINE_ID_GUARD_SOURCE

      public static final org.springframework.core.io.Resource MACHINE_ID_GUARD_SOURCE
    • MACHINE_ID_GUARD

      public static final org.springframework.data.redis.core.script.RedisScript<Long> MACHINE_ID_GUARD
  • Constructor Details

    • SpringRedisMachineIdDistributor

      public SpringRedisMachineIdDistributor(org.springframework.data.redis.core.StringRedisTemplate redisTemplate, MachineStateStorage machineStateStorage, ClockBackwardsSynchronizer clockBackwardsSynchronizer)
  • Method Details