![JAR search and dependency download from the Maven repository](/logo.png)
com.yahoo.gondola.NotLeaderException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Java implementation of Raft
The newest version!
/*
* Copyright 2015, Yahoo Inc.
* Copyrights licensed under the New BSD License.
* See the accompanying LICENSE file for terms.
*/
package com.yahoo.gondola;
import java.net.InetSocketAddress;
public class NotLeaderException extends Exception {
InetSocketAddress leaderAddr;
public NotLeaderException(InetSocketAddress leaderAddr) {
this.leaderAddr = leaderAddr;
}
/**
* Returns the location of the leader or null if there is no leader at the moment.
*
* @return the possibly-null address of the leader.
*/
public InetSocketAddress getLeaderAddress() {
return leaderAddr;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy