Table of Contents

Class VoterSet

Namespace
Org.Apache.Kafka.Raft
Assembly
MASES.KNet.dll
public class VoterSet : JVMBridgeBase<VoterSet>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<VoterSet>
VoterSet
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<VoterSet>.IsAssignableFrom(IJavaType)
JVMBridgeBase<VoterSet>.IsAssignableFrom<T>()
JVMBridgeBase<VoterSet>.Execute<T>(params T[])
JVMBridgeBase<VoterSet>.DynBridgeClazz
JVMBridgeBase<VoterSet>.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

VoterSet()

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

public VoterSet()

VoterSet(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 VoterSet(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

AddVoter(VoterNode)

public Optional<VoterSet> AddVoter(VoterSet.VoterNode arg0)

Parameters

arg0 VoterSet.VoterNode

VoterSet.VoterNode

Returns

Optional<VoterSet>

Optional

Empty()

public static VoterSet Empty()

Returns

VoterSet

VoterSet

FromMap(Map<Integer, VoterNode>)

public static VoterSet FromMap(Map<Integer, VoterSet.VoterNode> arg0)

Parameters

arg0 Map<Integer, VoterSet.VoterNode>

Map

Returns

VoterSet

VoterSet

HasOverlappingMajority(VoterSet)

public bool HasOverlappingMajority(VoterSet arg0)

Parameters

arg0 VoterSet

VoterSet

Returns

bool

bool

IsOnlyVoter(ReplicaKey)

public bool IsOnlyVoter(ReplicaKey arg0)

Parameters

arg0 ReplicaKey

ReplicaKey

Returns

bool

bool

IsVoter(ReplicaKey)

public bool IsVoter(ReplicaKey arg0)

Parameters

arg0 ReplicaKey

ReplicaKey

Returns

bool

bool

Listeners(int)

public Endpoints Listeners(int arg0)

Parameters

arg0 int

int

Returns

Endpoints

Endpoints

RemoveVoter(ReplicaKey)

public Optional<VoterSet> RemoveVoter(ReplicaKey arg0)

Parameters

arg0 ReplicaKey

ReplicaKey

Returns

Optional<VoterSet>

Optional

UpdateVoter(VoterNode)

public Optional<VoterSet> UpdateVoter(VoterSet.VoterNode arg0)

Parameters

arg0 VoterSet.VoterNode

VoterSet.VoterNode

Returns

Optional<VoterSet>

Optional

VoterIds()

public Set<Integer> VoterIds()

Returns

Set<Integer>

Set

VoterKeys()

public Set<ReplicaKey> VoterKeys()

Returns

Set<ReplicaKey>

Set

VoterNodeNeedsUpdate(VoterNode)

public bool VoterNodeNeedsUpdate(VoterSet.VoterNode arg0)

Parameters

arg0 VoterSet.VoterNode

VoterSet.VoterNode

Returns

bool

bool

VoterNodes()

public Set<VoterSet.VoterNode> VoterNodes()

Returns

Set<VoterSet.VoterNode>

Set