
redis.embedded.model.ReplicationGroup 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 ReplicationGroup {
public final String masterName;
public final int masterPort;
public final List slavePorts = new LinkedList<>();
public ReplicationGroup(final String masterName, int slaveCount, final PortProvider provider) {
this.masterName = masterName;
this.masterPort = provider.get();
while (slaveCount-- > 0) {
this.slavePorts.add(provider.get());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy