Examples of RedisSentinelConfiguration


Examples of org.springframework.data.redis.connection.RedisSentinelConfiguration

      if (this.sentinelConfiguration != null) {
        return this.sentinelConfiguration;
      }
      Sentinel sentinelProperties = this.properties.getSentinel();
      if (sentinelProperties != null) {
        RedisSentinelConfiguration config = new RedisSentinelConfiguration();
        config.master(sentinelProperties.getMaster());
        config.setSentinels(createSentinels(sentinelProperties));
        return config;
      }
      return null;
    }
View Full Code Here

Examples of org.springframework.data.redis.connection.RedisSentinelConfiguration

   */
  @Test
  @RequiresRedisSentinel(SentinelsAvailable.ONE_ACTIVE)
  public void shouldReturnSentinelCommandsWhenWhenActiveSentinelFound() {

    ((JedisConnection) byteConnection).setSentinelConfiguration(new RedisSentinelConfiguration().master("mymaster")
        .sentinel("127.0.0.1", 26379).sentinel("127.0.0.1", 26380));
    assertThat(connection.getSentinelConnection(), notNullValue());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.