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