Table of Contents

Class ResignedState

Namespace
Org.Apache.Kafka.Raft
Assembly
MASES.KNet.dll
public class ResignedState : EpochState, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition, IEpochState, ICloseable, IAutoCloseable
Inheritance
ResignedState
Implements
Inherited Members

Constructors

ResignedState(IJVMBridgeBaseInitializer)

Initializer used internally by JCOBridge. Do not use directly.

[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public ResignedState(IJVMBridgeBaseInitializer initializer)

Parameters

initializer IJVMBridgeBaseInitializer

ResignedState(Time, int, int, Set<Integer>, long, List<ReplicaKey>, Endpoints, LogContext)

public ResignedState(Time arg0, int arg1, int arg2, Set<Integer> arg3, long arg4, List<ReplicaKey> arg5, Endpoints arg6, LogContext arg7)

Parameters

arg0 Time

Time

arg1 int

int

arg2 int

int

arg3 Set<Integer>

Set

arg4 long

long

arg5 List<ReplicaKey>

List

arg6 Endpoints

Endpoints

arg7 LogContext

LogContext

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements java.lang.AutoCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

AcknowledgeResignation(int)

public void AcknowledgeResignation(int arg0)

Parameters

arg0 int

int

CanGrantVote(ReplicaKey, bool, bool)

public bool CanGrantVote(ReplicaKey arg0, bool arg1, bool arg2)

Parameters

arg0 ReplicaKey

ReplicaKey

arg1 bool

bool

arg2 bool

bool

Returns

bool

bool

Close()

public void Close()

CreatePoolableInstance(Time, int, int, Set<Integer>, long, List<ReplicaKey>, Endpoints, LogContext)

HPA initializer for ResignedState(Org.Apache.Kafka.Common.Utils.Time arg0, int arg1, int arg2, Java.Util.Set%3CJava.Lang.Integer%3E arg3, long arg4, Java.Util.List%3COrg.Apache.Kafka.Raft.ReplicaKey%3E arg5, Org.Apache.Kafka.Raft.Endpoints arg6, Org.Apache.Kafka.Common.Utils.LogContext arg7)

public static ResignedState CreatePoolableInstance(Time arg0, int arg1, int arg2, Set<Integer> arg3, long arg4, List<ReplicaKey> arg5, Endpoints arg6, LogContext arg7)

Parameters

arg0 Time
arg1 int
arg2 int
arg3 Set<Integer>
arg4 long
arg5 List<ReplicaKey>
arg6 Endpoints
arg7 LogContext

Returns

ResignedState

Election()

public ElectionState Election()

Returns

ElectionState

ElectionState

Epoch()

public int Epoch()

Returns

int

int

HasElectionTimeoutExpired(long)

public bool HasElectionTimeoutExpired(long arg0)

Parameters

arg0 long

long

Returns

bool

bool

LeaderEndpoints()

public Endpoints LeaderEndpoints()

Returns

Endpoints

Endpoints

Name()

public String Name()

Returns

String

String

PreferredSuccessors()

public List<ReplicaKey> PreferredSuccessors()

Returns

List<ReplicaKey>

List

RemainingElectionTimeMs(long)

public long RemainingElectionTimeMs(long arg0)

Parameters

arg0 long

long

Returns

long

long

UnackedVoters()

public Set<Integer> UnackedVoters()

Returns

Set<Integer>

Set