All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.lettuce.core.masterreplica.SentinelTopologyRefreshEvent Maven / Gradle / Ivy

Go to download

Advanced and thread-safe Java Redis client for synchronous, asynchronous, and reactive usage. Supports Cluster, Sentinel, Pipelining, Auto-Reconnect, Codecs and much more.

The newest version!
package io.lettuce.core.masterreplica;

import io.lettuce.core.event.Event;

/**
 * Event triggered when Redis Sentinel indicates a topology change trigger.
 *
 * @author Mark Paluch
 * @since 6.1
 */
class SentinelTopologyRefreshEvent implements Event {

    private final String source;

    private final String message;

    private final long delayMs;

    public SentinelTopologyRefreshEvent(String source, String message, long delayMs) {
        this.source = source;
        this.message = message;
        this.delayMs = delayMs;
    }

    public String getSource() {
        return source;
    }

    public String getMessage() {
        return message;
    }

    public long getDelayMs() {
        return delayMs;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy