Class ValueMapperWithKey<K, V, VR>
Listener for Kafka ValueMapperWithKey. Extends JVMBridgeListener, implements IValueMapperWithKey<K, V, VR>
public class ValueMapperWithKey<K, V, VR> : JVMBridgeListener, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IValueMapperWithKey<K, V, VR>, IJVMBridgeBase, IJVMBridgeDefinition
Type Parameters
K
V
VR
- Inheritance
-
ValueMapperWithKey<K, V, VR>
- Implements
-
IValueMapperWithKey<K, V, VR>
- Derived
- Inherited Members
Remarks
Dispose the object to avoid a resource leak, the object contains a reference to the corresponding JVM object
Constructors
ValueMapperWithKey()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public ValueMapperWithKey()
ValueMapperWithKey(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 ValueMapperWithKey(params object[] args)
Parameters
args
object[]
Properties
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
OnApply
public Func<K, V, VR> OnApply { get; set; }
Property Value
- Func<K, V, VR>
Remarks
If OnApply has a value it takes precedence over corresponding class method
Methods
Apply(K, V)
public virtual VR Apply(K arg0, V arg1)
Parameters
arg0
KK
arg1
VV
Returns
- VR
VR
InitializeHandlers()
Handlers initializer for ValueMapperWithKey
protected virtual void InitializeHandlers()