Table of Contents

Class Metadata

Namespace
Org.Apache.Kafka.Clients
Assembly
MASES.KNet.dll
public class Metadata : Closeable, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, ICloseable, IAutoCloseable
Inheritance
JVMBridgeBase
JVMBridgeBase<AutoCloseable>
Metadata
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

Metadata()

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

public Metadata()

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

AddClusterUpdateListener(ClusterResourceListener)

public void AddClusterUpdateListener(ClusterResourceListener arg0)

Parameters

arg0 ClusterResourceListener

ClusterResourceListener

Bootstrap(List<InetSocketAddress>)

public void Bootstrap(List<InetSocketAddress> arg0)

Parameters

arg0 List<InetSocketAddress>

List

Close()

public void Close()

CurrentLeader(TopicPartition)

public Metadata.LeaderAndEpoch CurrentLeader(TopicPartition arg0)

Parameters

arg0 TopicPartition

TopicPartition

Returns

Metadata.LeaderAndEpoch

Metadata.LeaderAndEpoch

FailedUpdate(long)

public void FailedUpdate(long arg0)

Parameters

arg0 long

long

FatalError(JVMBridgeException)

public void FatalError(JVMBridgeException arg0)

Parameters

arg0 JVMBridgeException

KafkaException

Fetch()

public Cluster Fetch()

Returns

Cluster

Cluster

FetchMetadataSnapshot()

public MetadataSnapshot FetchMetadataSnapshot()

Returns

MetadataSnapshot

MetadataSnapshot

IsClosed()

public bool IsClosed()

Returns

bool

bool

LastSeenLeaderEpoch(TopicPartition)

public Optional<Integer> LastSeenLeaderEpoch(TopicPartition arg0)

Parameters

arg0 TopicPartition

TopicPartition

Returns

Optional<Integer>

Optional

LastSuccessfulUpdate()

public long LastSuccessfulUpdate()

Returns

long

long

MaybeThrowAnyException()

public void MaybeThrowAnyException()

MaybeThrowExceptionForTopic(String)

public void MaybeThrowExceptionForTopic(String arg0)

Parameters

arg0 String

String

MetadataExpireMs()

public long MetadataExpireMs()

Returns

long

long

NewMetadataRequestAndVersion(long)

public Metadata.MetadataRequestAndVersion NewMetadataRequestAndVersion(long arg0)

Parameters

arg0 long

long

Returns

Metadata.MetadataRequestAndVersion

Metadata.MetadataRequestAndVersion

Rebootstrap()

public void Rebootstrap()

RequestUpdate(bool)

public int RequestUpdate(bool arg0)

Parameters

arg0 bool

bool

Returns

int

int

RequestUpdateForNewTopics()

public int RequestUpdateForNewTopics()

Returns

int

int

TimeToAllowUpdate(long)

public long TimeToAllowUpdate(long arg0)

Parameters

arg0 long

long

Returns

long

long

TimeToNextUpdate(long)

public long TimeToNextUpdate(long arg0)

Parameters

arg0 long

long

Returns

long

long

TopicIds()

public Map<String, Uuid> TopicIds()

Returns

Map<String, Uuid>

Map

TopicNames()

public Map<Uuid, String> TopicNames()

Returns

Map<Uuid, String>

Map

UpdateLastSeenEpochIfNewer(TopicPartition, int)

public bool UpdateLastSeenEpochIfNewer(TopicPartition arg0, int arg1)

Parameters

arg0 TopicPartition

TopicPartition

arg1 int

int

Returns

bool

bool

UpdatePartitionLeadership(Map<TopicPartition, LeaderIdAndEpoch>, List<Node>)

public Set<TopicPartition> UpdatePartitionLeadership(Map<TopicPartition, Metadata.LeaderIdAndEpoch> arg0, List<Node> arg1)

Parameters

arg0 Map<TopicPartition, Metadata.LeaderIdAndEpoch>

Map

arg1 List<Node>

List

Returns

Set<TopicPartition>

Set

UpdateRequested()

public bool UpdateRequested()

Returns

bool

bool

UpdateVersion()

public int UpdateVersion()

Returns

int

int