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