Clean up JedisSentinelTestUtil
* remove all unused methods * move JedisSentinelPoolTest.waitForJedisSentinelPoolRecognizeNewMaster to JedisSentinelTestUtil ** both JedisSentinelTest and JedisSentinelPoolTest can use this implementation * introduce FailoverAbortedException ** throws when we subscribe sentinel channels and got message by "-failover-abort-*" channel * respect Source Format to Java Convention (by Eclipse -> Source -> Format)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package redis.clients.jedis.tests.utils;
|
||||
|
||||
public class FailoverAbortedException extends RuntimeException {
|
||||
private static final long serialVersionUID = 1925110762858409954L;
|
||||
|
||||
public FailoverAbortedException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public FailoverAbortedException(Throwable cause) {
|
||||
super(cause);
|
||||
}
|
||||
|
||||
public FailoverAbortedException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user