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