Table of Contents

Class ProspectiveState

Namespace
Org.Apache.Kafka.Raft
Assembly
MASES.KNet.dll
public class ProspectiveState : JVMBridgeBase<ProspectiveState>, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition
Inheritance
ProspectiveState
Implements

Constructors

ProspectiveState(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 ProspectiveState(IJVMBridgeBaseInitializer initializer)

Parameters

initializer IJVMBridgeBaseInitializer

ProspectiveState(Time, int, int, OptionalInt, Endpoints, Optional<ReplicaKey>, VoterSet, Optional<LogOffsetMetadata>, int, LogContext)

public ProspectiveState(Time arg0, int arg1, int arg2, OptionalInt arg3, Endpoints arg4, Optional<ReplicaKey> arg5, VoterSet arg6, Optional<LogOffsetMetadata> arg7, int arg8, LogContext arg9)

Parameters

arg0 Time

Time

arg1 int

int

arg2 int

int

arg3 OptionalInt

OptionalInt

arg4 Endpoints

Endpoints

arg5 Optional<ReplicaKey>

Optional

arg6 VoterSet

VoterSet

arg7 Optional<LogOffsetMetadata>

Optional

arg8 int

int

arg9 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

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, OptionalInt, Endpoints, Optional<ReplicaKey>, VoterSet, Optional<LogOffsetMetadata>, int, LogContext)

HPA initializer for ProspectiveState(Org.Apache.Kafka.Common.Utils.Time arg0, int arg1, int arg2, Java.Util.OptionalInt arg3, Org.Apache.Kafka.Raft.Endpoints arg4, Java.Util.Optional%3COrg.Apache.Kafka.Raft.ReplicaKey%3E arg5, Org.Apache.Kafka.Raft.VoterSet arg6, Java.Util.Optional%3COrg.Apache.Kafka.Raft.LogOffsetMetadata%3E arg7, int arg8, Org.Apache.Kafka.Common.Utils.LogContext arg9)

public static ProspectiveState CreatePoolableInstance(Time arg0, int arg1, int arg2, OptionalInt arg3, Endpoints arg4, Optional<ReplicaKey> arg5, VoterSet arg6, Optional<LogOffsetMetadata> arg7, int arg8, LogContext arg9)

Parameters

arg0 Time
arg1 int
arg2 int
arg3 OptionalInt
arg4 Endpoints
arg5 Optional<ReplicaKey>
arg6 VoterSet
arg7 Optional<LogOffsetMetadata>
arg8 int
arg9 LogContext

Returns

ProspectiveState

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

HighWatermark()

public Optional<LogOffsetMetadata> HighWatermark()

Returns

Optional<LogOffsetMetadata>

Optional

LeaderEndpoints()

public Endpoints LeaderEndpoints()

Returns

Endpoints

Endpoints

Name()

public String Name()

Returns

String

String

RecordGrantedVote(int)

public bool RecordGrantedVote(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

RecordRejectedVote(int)

public bool RecordRejectedVote(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

RemainingElectionTimeMs(long)

public long RemainingElectionTimeMs(long arg0)

Parameters

arg0 long

long

Returns

long

long

VotedKey()

public Optional<ReplicaKey> VotedKey()

Returns

Optional<ReplicaKey>

Optional