Class KafkaBasedLog<K, V>
public class KafkaBasedLog<K, V> : JVMBridgeBase<KafkaBasedLog<K, V>>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Type Parameters
K
V
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<KafkaBasedLog<K, V>>KafkaBasedLog<K, V>
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<KafkaBasedLog<K, V>>.SExecuteWithSignature(IJavaType, string, string, params object[])JVMBridgeBase<KafkaBasedLog<K, V>>.SExecute<TNewClass, TReturn, TConverter>(string, params object[])JVMBridgeBase<KafkaBasedLog<K, V>>.IsAssignableFrom(IJavaType)JVMBridgeBase<KafkaBasedLog<K, V>>.IsAssignableFrom<T>()JVMBridgeBase<KafkaBasedLog<K, V>>.Execute<T>(params T[])JVMBridgeBase<KafkaBasedLog<K, V>>.DynBridgeClazzJVMBridgeBase<KafkaBasedLog<K, V>>.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.IsBridgeListener
Constructors
KafkaBasedLog()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public KafkaBasedLog()
KafkaBasedLog(String, Map<String, object>, Map<String, object>, Supplier<TopicAdmin>, Callback<ConsumerRecord<K, V>>, Time, Consumer<TopicAdmin>)
public KafkaBasedLog(String arg0, Map<String, object> arg1, Map<String, object> arg2, Supplier<TopicAdmin> arg3, Callback<ConsumerRecord<K, V>> arg4, Time arg5, Consumer<TopicAdmin> arg6)
Parameters
arg0
Stringarg1
Map<String, object>arg2
Map<String, object>arg3
Supplier<TopicAdmin>arg4
Callback<ConsumerRecord<K, V>>arg5
Timearg6
Consumer<TopicAdmin>
KafkaBasedLog(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 KafkaBasedLog(params object[] args)
Parameters
args
object[]
Properties
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
Methods
Flush()
public void Flush()
PartitionCount()
public int PartitionCount()
Returns
ReadToEnd()
public Future<Void> ReadToEnd()
Returns
ReadToEnd(Callback<Void>)
public void ReadToEnd(Callback<Void> arg0)
Parameters
Send(K, V)
public void Send(K arg0, V arg1)
Parameters
arg0
KK
arg1
VV
Send(K, V, Callback)
public void Send(K arg0, V arg1, Callback arg2)
Parameters
SendWithReceipt(K, V)
public Future<RecordMetadata> SendWithReceipt(K arg0, V arg1)
Parameters
arg0
KK
arg1
VV
Returns
SendWithReceipt(K, V, Callback)
public Future<RecordMetadata> SendWithReceipt(K arg0, V arg1, Callback arg2)
Parameters
Returns
Start()
public void Start()
Start(bool)
public void Start(bool arg0)
Parameters
Stop()
public void Stop()
WithExistingClients(String, Consumer<K, V>, Producer<K, V>, TopicAdmin, Callback<ConsumerRecord<K, V>>, Time, Consumer<TopicAdmin>, Predicate<TopicPartition>)
public static KafkaBasedLog<K, V> WithExistingClients(String arg0, Consumer<K, V> arg1, Producer<K, V> arg2, TopicAdmin arg3, Callback<ConsumerRecord<K, V>> arg4, Time arg5, Consumer<TopicAdmin> arg6, Predicate<TopicPartition> arg7)
Parameters
arg0
Stringarg1
Consumer<K, V>arg2
Producer<K, V>arg3
TopicAdminarg4
Callback<ConsumerRecord<K, V>>arg5
Timearg6
Consumer<TopicAdmin>arg7
Predicate<TopicPartition>
Returns
- KafkaBasedLog<K, V>
Operators
implicit operator KafkaBasedLog(KafkaBasedLog<K, V>)
Converter from KafkaBasedLog<K, V> to KafkaBasedLog
public static implicit operator KafkaBasedLog(KafkaBasedLog<K, V> t)
Parameters
t
KafkaBasedLog<K, V>