Table of Contents

Class KNetClientSupplier

Namespace
MASES.KNet.Streams
Assembly
MASES.KNet.dll

KNet implementation of KafkaClientSupplier

public class KNetClientSupplier : KafkaClientSupplier, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IKafkaClientSupplier
Inheritance
JVMBridgeBase
JVMBridgeBase<JVMBridgeListener>
JVMBridgeListener
KNetClientSupplier
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeListener.AutoInit
JVMBridgeListener.IsBridgeStatic
JVMBridgeListener.IsBridgeCloseable
JVMBridgeListener.IsBridgeListener
JVMBridgeBase<JVMBridgeListener>.IsAssignableFrom(IJavaType)
JVMBridgeBase<JVMBridgeListener>.IsAssignableFrom<T>()
JVMBridgeBase<JVMBridgeListener>.Execute<T>(params T[])
JVMBridgeBase<JVMBridgeListener>.DynBridgeClazz
JVMBridgeBase<JVMBridgeListener>.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.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeInterface
JVMBridgeBase.IsBridgeAbstract

Remarks

The default KafkaClientSupplier used from KafkaStreams allocates both KafkaConsumer and KafkaProducer. KNetClientSupplier uses KNetConsumer<K, V, TJVMK, TJVMV> and KNetProducer<K, V, TJVMK, TJVMV>, the instance shall be disposed when no more in use, but still be alive still KafkaStreams is alive.

Constructors

KNetClientSupplier()

Default initializer

public KNetClientSupplier()

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public override void Dispose()

GetAdmin(Map<String, object>)

public override Admin GetAdmin(Map<String, object> arg0)

Parameters

arg0 Map<String, object>

Map

Returns

Admin

Admin

Remarks

The method invokes the default implementation in the JVM interface using GetAdminDefault(Map<String, object>); override the method to implement a different behavior

GetConsumer(Map<String, object>)

public override Consumer<byte[], byte[]> GetConsumer(Map<String, object> arg0)

Parameters

arg0 Map<String, object>

Map

Returns

Consumer<byte[], byte[]>

Consumer

GetGlobalConsumer(Map<String, object>)

public override Consumer<byte[], byte[]> GetGlobalConsumer(Map<String, object> arg0)

Parameters

arg0 Map<String, object>

Map

Returns

Consumer<byte[], byte[]>

Consumer

GetProducer(Map<String, object>)

public override Producer<byte[], byte[]> GetProducer(Map<String, object> arg0)

Parameters

arg0 Map<String, object>

Map

Returns

Producer<byte[], byte[]>

Producer

GetRestoreConsumer(Map<String, object>)

public override Consumer<byte[], byte[]> GetRestoreConsumer(Map<String, object> arg0)

Parameters

arg0 Map<String, object>

Map

Returns

Consumer<byte[], byte[]>

Consumer