Class FixedIntervalReconnectStrategy

java.lang.Object
cn.com.anysdk.redis.reconnect.FixedIntervalReconnectStrategy
All Implemented Interfaces:
RedisReconnectStrategy

public class FixedIntervalReconnectStrategy extends Object implements RedisReconnectStrategy
固定间隔重连策略
  • Constructor Details

    • FixedIntervalReconnectStrategy

      public FixedIntervalReconnectStrategy(long intervalMs, int maxRetryCount)
      创建固定间隔重连策略
      Parameters:
      intervalMs - 重连间隔(毫秒)
      maxRetryCount - 最大重试次数,-1表示无限重试
  • Method Details