
redis.embedded.model.Shard Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of embedded-redis Show documentation
Show all versions of embedded-redis Show documentation
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