Class LeaderInformation
- java.lang.Object
-
- org.apache.flink.runtime.leaderelection.LeaderInformation
-
- All Implemented Interfaces:
Serializable
public class LeaderInformation extends Object implements Serializable
Information about leader including the confirmed leader session id and leader address.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LeaderInformation
empty()
boolean
equals(Object obj)
String
getLeaderAddress()
UUID
getLeaderSessionID()
int
hashCode()
boolean
isEmpty()
static LeaderInformation
known(UUID leaderSessionID, String leaderAddress)
String
toString()
-
-
-
Method Detail
-
getLeaderSessionID
@Nullable public UUID getLeaderSessionID()
-
getLeaderAddress
@Nullable public String getLeaderAddress()
-
isEmpty
public boolean isEmpty()
-
known
public static LeaderInformation known(UUID leaderSessionID, String leaderAddress)
-
empty
public static LeaderInformation empty()
-
-