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 LeaderInformationempty()booleanequals(Object obj)StringgetLeaderAddress()UUIDgetLeaderSessionID()inthashCode()booleanisEmpty()static LeaderInformationknown(UUID leaderSessionID, String leaderAddress)StringtoString()
-
-
-
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()
-
-