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

redis.embedded.model.Shard Maven / Gradle / Ivy

Go to download

Redis embedded server for Java integration testing. Project forked from https://github.com/ozimov/embedded-redis Which was forked from https://github.com/kstyrc/embedded-redis

The newest version!
package redis.embedded.model;

import redis.embedded.core.PortProvider;

import java.util.LinkedList;
import java.util.List;

public final class Shard {

    public final String name;
    public final int mainNodePort;
    public final List replicaPorts = new LinkedList<>();

    public Shard(final String name, int replicaCount, final PortProvider provider) {
        this.name = name;
        this.mainNodePort = provider.get();
        while (replicaCount-- > 0) {
            this.replicaPorts.add(provider.get());
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy