Table of Contents

Class ElectionState

Namespace
Org.Apache.Kafka.Raft
Assembly
MASES.KNet.dll
public class ElectionState : JVMBridgeBase<ElectionState>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<ElectionState>
ElectionState
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<ElectionState>.IsAssignableFrom(IJavaType)
JVMBridgeBase<ElectionState>.IsAssignableFrom<T>()
JVMBridgeBase<ElectionState>.Execute<T>(params T[])
JVMBridgeBase<ElectionState>.DynBridgeClazz
JVMBridgeBase<ElectionState>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener

Constructors

ElectionState()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

public ElectionState()

ElectionState(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

public ElectionState(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

Epoch()

public int Epoch()

Returns

int

int

FromQuorumStateData(QuorumStateData)

public static ElectionState FromQuorumStateData(QuorumStateData arg0)

Parameters

arg0 QuorumStateData

QuorumStateData

Returns

ElectionState

ElectionState

HasLeader()

public bool HasLeader()

Returns

bool

bool

HasVoted()

public bool HasVoted()

Returns

bool

bool

IsLeader(int)

public bool IsLeader(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

IsVotedCandidate(ReplicaKey)

public bool IsVotedCandidate(ReplicaKey arg0)

Parameters

arg0 ReplicaKey

ReplicaKey

Returns

bool

bool

LeaderId()

public int LeaderId()

Returns

int

int

LeaderIdOrSentinel()

public int LeaderIdOrSentinel()

Returns

int

int

OptionalLeaderId()

public OptionalInt OptionalLeaderId()

Returns

OptionalInt

OptionalInt

OptionalVotedKey()

public Optional<ReplicaKey> OptionalVotedKey()

Returns

Optional<ReplicaKey>

Optional

ToQuorumStateData(short)

public QuorumStateData ToQuorumStateData(short arg0)

Parameters

arg0 short

short

Returns

QuorumStateData

QuorumStateData

VotedKey()

public ReplicaKey VotedKey()

Returns

ReplicaKey

ReplicaKey

WithElectedLeader(int, int, Set<Integer>)

public static ElectionState WithElectedLeader(int arg0, int arg1, Set<Integer> arg2)

Parameters

arg0 int

int

arg1 int

int

arg2 Set<Integer>

Set

Returns

ElectionState

ElectionState

WithUnknownLeader(int, Set<Integer>)

public static ElectionState WithUnknownLeader(int arg0, Set<Integer> arg1)

Parameters

arg0 int

int

arg1 Set<Integer>

Set

Returns

ElectionState

ElectionState

WithVotedCandidate(int, ReplicaKey, Set<Integer>)

public static ElectionState WithVotedCandidate(int arg0, ReplicaKey arg1, Set<Integer> arg2)

Parameters

arg0 int

int

arg1 ReplicaKey

ReplicaKey

arg2 Set<Integer>

Set

Returns

ElectionState

ElectionState