Table of Contents

Class ReplicatedLog

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

ReplicatedLog()

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

[Obsolete("ReplicatedLog class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public ReplicatedLog()

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

[Obsolete("ReplicatedLog class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public ReplicatedLog(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

Close()

public void Close()

CreateNewSnapshot(OffsetAndEpoch)

public Optional<RawSnapshotWriter> CreateNewSnapshot(OffsetAndEpoch arg0)

Parameters

arg0 OffsetAndEpoch

OffsetAndEpoch

Returns

Optional<RawSnapshotWriter>

Optional

CreateNewSnapshotUnchecked(OffsetAndEpoch)

public Optional<RawSnapshotWriter> CreateNewSnapshotUnchecked(OffsetAndEpoch arg0)

Parameters

arg0 OffsetAndEpoch

OffsetAndEpoch

Returns

Optional<RawSnapshotWriter>

Optional

DeleteBeforeSnapshot(OffsetAndEpoch)

public bool DeleteBeforeSnapshot(OffsetAndEpoch arg0)

Parameters

arg0 OffsetAndEpoch

OffsetAndEpoch

Returns

bool

bool

EarliestSnapshotId()

public Optional<OffsetAndEpoch> EarliestSnapshotId()

Returns

Optional<OffsetAndEpoch>

Optional

EndOffset()

public LogOffsetMetadata EndOffset()

Returns

LogOffsetMetadata

LogOffsetMetadata

EndOffsetForEpoch(int)

public OffsetAndEpoch EndOffsetForEpoch(int arg0)

Parameters

arg0 int

int

Returns

OffsetAndEpoch

OffsetAndEpoch

Flush(bool)

public void Flush(bool arg0)

Parameters

arg0 bool

bool

HighWatermark()

public LogOffsetMetadata HighWatermark()

Returns

LogOffsetMetadata

LogOffsetMetadata

InitializeLeaderEpoch(int)

public void InitializeLeaderEpoch(int arg0)

Parameters

arg0 int

int

LastFetchedEpoch()

public int LastFetchedEpoch()

Returns

int

int

LatestSnapshot()

public Optional<RawSnapshotReader> LatestSnapshot()

Returns

Optional<RawSnapshotReader>

Optional

LatestSnapshotId()

public Optional<OffsetAndEpoch> LatestSnapshotId()

Returns

Optional<OffsetAndEpoch>

Optional

MaybeClean()

public bool MaybeClean()

Returns

bool

bool

OnSnapshotFrozen(OffsetAndEpoch)

public void OnSnapshotFrozen(OffsetAndEpoch arg0)

Parameters

arg0 OffsetAndEpoch

OffsetAndEpoch

Read(long, Isolation)

public LogFetchInfo Read(long arg0, Isolation arg1)

Parameters

arg0 long

long

arg1 Isolation

Isolation

Returns

LogFetchInfo

LogFetchInfo

ReadSnapshot(OffsetAndEpoch)

public Optional<RawSnapshotReader> ReadSnapshot(OffsetAndEpoch arg0)

Parameters

arg0 OffsetAndEpoch

OffsetAndEpoch

Returns

Optional<RawSnapshotReader>

Optional

StartOffset()

public long StartOffset()

Returns

long

long

TopicId()

public Uuid TopicId()

Returns

Uuid

Uuid

TopicPartition()

public TopicPartition TopicPartition()

Returns

TopicPartition

TopicPartition

TruncateTo(long)

public void TruncateTo(long arg0)

Parameters

arg0 long

long

TruncateToEndOffset(OffsetAndEpoch)

public long TruncateToEndOffset(OffsetAndEpoch arg0)

Parameters

arg0 OffsetAndEpoch

OffsetAndEpoch

Returns

long

long

TruncateToLatestSnapshot()

public bool TruncateToLatestSnapshot()

Returns

bool

bool

UpdateHighWatermark(LogOffsetMetadata)

public void UpdateHighWatermark(LogOffsetMetadata arg0)

Parameters

arg0 LogOffsetMetadata

LogOffsetMetadata

ValidateOffsetAndEpoch(long, int)

public ValidOffsetAndEpoch ValidateOffsetAndEpoch(long arg0, int arg1)

Parameters

arg0 long

long

arg1 int

int

Returns

ValidOffsetAndEpoch

ValidOffsetAndEpoch