Table of Contents

Class ForeachAction<K, V>

Namespace
Org.Apache.Kafka.Streams.Kstream
Assembly
MASES.KNet.dll

Listener for Kafka ForeachAction. Extends JVMBridgeListener, implements IForeachAction<K, V>

public class ForeachAction<K, V> : JVMBridgeListener, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IForeachAction<K, V>, IJVMBridgeBase, IJVMBridgeDefinition

Type Parameters

K
V
Inheritance
ForeachAction<K, V>
Implements
Derived
Inherited Members

Remarks

Dispose the object to avoid a resource leak, the object contains a reference to the corresponding JVM object

Constructors

ForeachAction()

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

public ForeachAction()

ForeachAction(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 ForeachAction(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

OnApply

public Action<K, V> OnApply { get; set; }

Property Value

Action<K, V>

Remarks

If OnApply has a value it takes precedence over corresponding class method

Methods

Apply(K, V)

public virtual void Apply(K arg0, V arg1)

Parameters

arg0 K

K

arg1 V

V

InitializeHandlers()

Handlers initializer for ForeachAction

protected virtual void InitializeHandlers()