Class FollowerState
public class FollowerState : EpochState, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBase>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IEpochState, ICloseable, IAutoCloseable
- Inheritance
-
FollowerState
- Implements
- Inherited Members
-
JVMBridgeBase<AutoCloseable>.SExecuteWithSignature(Type, IJavaType, string, string, params object[])JVMBridgeBase<AutoCloseable>.SExecute<TReturn, TConverter>(Type, IJavaType, string, params object[])JVMBridgeBase<AutoCloseable>.SExecuteWithSignatureArray<TArrayType>(string, string, params object[])
Constructors
FollowerState()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public FollowerState()
FollowerState(IJVMBridgeBaseInitializer)
Internal constructor: used internally from JCOBridge
[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public FollowerState(IJVMBridgeBaseInitializer initializer)
Parameters
initializerIJVMBridgeBaseInitializer
FollowerState(Time, int, int, Endpoints, Optional<ReplicaKey>, Set<Integer>, Optional<LogOffsetMetadata>, int, LogContext)
public FollowerState(Time arg0, int arg1, int arg2, Endpoints arg3, Optional<ReplicaKey> arg4, Set<Integer> arg5, Optional<LogOffsetMetadata> arg6, int arg7, LogContext arg8)
Parameters
arg0Timearg1intarg2intarg3Endpointsarg4Optional<ReplicaKey>arg5Set<Integer>arg6Optional<LogOffsetMetadata>arg7intarg8LogContext
FollowerState(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 FollowerState(params object[] args)
Parameters
argsobject[]
Properties
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements Closeable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
public override bool IsBridgeStatic { get; }
Property Value
Methods
CanGrantVote(ReplicaKey, bool, bool)
public bool CanGrantVote(ReplicaKey arg0, bool arg1, bool arg2)
Parameters
arg0ReplicaKeyarg1boolarg2bool
Returns
Close()
public void Close()
Election()
public ElectionState Election()
Returns
Epoch()
public int Epoch()
Returns
FetchingSnapshot()
public Optional<RawSnapshotWriter> FetchingSnapshot()
Returns
HasFetchTimeoutExpired(long)
public bool HasFetchTimeoutExpired(long arg0)
Parameters
Returns
HasUpdateVoterPeriodExpired(long)
public bool HasUpdateVoterPeriodExpired(long arg0)
Parameters
Returns
HasUpdatedLeader()
public bool HasUpdatedLeader()
Returns
HighWatermark()
public Optional<LogOffsetMetadata> HighWatermark()
Returns
LeaderEndpoints()
public Endpoints LeaderEndpoints()
Returns
LeaderId()
public int LeaderId()
Returns
Name()
public String Name()
Returns
OverrideFetchTimeout(long, long)
public void OverrideFetchTimeout(long arg0, long arg1)
Parameters
RemainingFetchTimeMs(long)
public long RemainingFetchTimeMs(long arg0)
Parameters
Returns
RemainingUpdateVoterPeriodMs(long)
public long RemainingUpdateVoterPeriodMs(long arg0)
Parameters
Returns
ResetFetchTimeoutForSuccessfulFetch(long)
public void ResetFetchTimeoutForSuccessfulFetch(long arg0)
Parameters
ResetUpdateVoterPeriod(long)
public void ResetUpdateVoterPeriod(long arg0)
Parameters
SetFetchingSnapshot(Optional<RawSnapshotWriter>)
public void SetFetchingSnapshot(Optional<RawSnapshotWriter> arg0)
Parameters
SetHasUpdatedLeader()
public void SetHasUpdatedLeader()
UpdateHighWatermark(OptionalLong)
public bool UpdateHighWatermark(OptionalLong arg0)
Parameters
arg0OptionalLong