Class ConnectRecord<R, TKey, TValue>
KNet helper for ConnectRecord
public class ConnectRecord<R, TKey, TValue> : JVMBridgeBase<ConnectRecord<R, TKey, TValue>>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition where R : ConnectRecord<R, TKey, TValue>
Type Parameters
R
The class extending ConnectRecord<R, TKey, TValue>
TKey
The type of the key to be inserted in Kafka
TValue
The type of value to be inserted in Kafka
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<ConnectRecord<R, TKey, TValue>>ConnectRecord<R, TKey, TValue>
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Derived
- Inherited Members
-
JVMBridgeBase<ConnectRecord<R, TKey, TValue>>.SExecuteWithSignature(string, string, params object[])JVMBridgeBase<ConnectRecord<R, TKey, TValue>>.IsAssignableFrom(IJavaType)JVMBridgeBase<ConnectRecord<R, TKey, TValue>>.IsAssignableFrom<T>()JVMBridgeBase<ConnectRecord<R, TKey, TValue>>.Execute<T>(params T[])JVMBridgeBase<ConnectRecord<R, TKey, TValue>>.DynBridgeClazzJVMBridgeBase<ConnectRecord<R, TKey, TValue>>.BridgeClazzJVMBridgeBase.RuntimeClassNameOf<T>()JVMBridgeBase.ClassNameOf<T>()JVMBridgeBase.ClassOf<T>()JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)JVMBridgeBase.MonitorEnter()JVMBridgeBase.MonitorExit()JVMBridgeBase.IsInstanceOf(IJavaType)JVMBridgeBase.IsInstanceOf<T>()JVMBridgeBase.RuntimeIsInstanceOf<T>()JVMBridgeBase.CastTo<TNewClass>()JVMBridgeBase.CastDirect<TNewClass>()JVMBridgeBase.Dispose()JVMBridgeBase.ToString()JVMBridgeBase.GetHashCode()JVMBridgeBase.Notify()JVMBridgeBase.NotifyAll()JVMBridgeBase.Wait()JVMBridgeBase.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.IsBridgeInterfaceJVMBridgeBase.IsBridgeStaticJVMBridgeBase.IsBridgeCloseableJVMBridgeBase.IsBridgeListener
Constructors
ConnectRecord()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public ConnectRecord()
ConnectRecord(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
protected ConnectRecord(params object[] args)
Parameters
args
object[]
ConnectRecord(string, int, Schema, TKey, Schema, TValue, DateTime)
public ConnectRecord(string topic, int kafkaPartition, Schema keySchema, TKey key, Schema valueSchema, TValue value, DateTime timestamp)
Parameters
topic
stringkafkaPartition
intkeySchema
Schemakey
TKeyvalueSchema
Schemavalue
TValuetimestamp
DateTime
ConnectRecord(string, int, Schema, TKey, Schema, TValue, DateTime, Headers)
public ConnectRecord(string topic, int kafkaPartition, Schema keySchema, TKey key, Schema valueSchema, TValue value, DateTime timestamp, Headers headers)
Parameters
topic
stringkafkaPartition
intkeySchema
Schemakey
TKeyvalueSchema
Schemavalue
TValuetimestamp
DateTimeheaders
Headers
Properties
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
Headers
The Headers
public Headers Headers { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
KafkaPartition
Partition
public int KafkaPartition { get; }
Property Value
Key
Key
public TKey Key { get; }
Property Value
- TKey
KeySchema
KeySchema
public Schema KeySchema { get; }
Property Value
Timestamp
Timestamp
public DateTime Timestamp { get; }
Property Value
Topic
Topic
public string Topic { get; }
Property Value
Value
Value
public TValue Value { get; }
Property Value
- TValue
ValueSchema
ValueSchema
public Schema ValueSchema { get; }
Property Value
Methods
NewRecord(string, int, Schema, TKey, Schema, TValue, DateTime)
public R NewRecord(string topic, int kafkaPartition, Schema keySchema, TKey key, Schema valueSchema, TValue value, DateTime timestamp)
Parameters
topic
stringkafkaPartition
intkeySchema
Schemakey
TKeyvalueSchema
Schemavalue
TValuetimestamp
DateTime
Returns
- R
NewRecord(string, int, Schema, TKey, Schema, TValue, DateTime, Headers)
public R NewRecord(string topic, int kafkaPartition, Schema keySchema, TKey key, Schema valueSchema, TValue value, DateTime timestamp, Headers headers)
Parameters
topic
stringkafkaPartition
intkeySchema
Schemakey
TKeyvalueSchema
Schemavalue
TValuetimestamp
DateTimeheaders
Headers
Returns
- R