Class ConsumerRecords<K, V>
public class ConsumerRecords<K, V> : Iterable<ConsumerRecord<K, V>>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IEnumerableExtension, IEnumerable<ConsumerRecord<K, V>>, IEnumerable, IAsyncEnumerable<ConsumerRecord<K, V>>, IIterable<ConsumerRecord<K, V>>
Type Parameters
K
V
- Inheritance
-
JVMBridgeBaseIterable<ConsumerRecord<K, V>>ConsumerRecords<K, V>
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinitionIEnumerableExtensionIEnumerable<ConsumerRecord<K, V>>IAsyncEnumerable<ConsumerRecord<K, V>>IIterable<ConsumerRecord<K, V>>
- Inherited Members
-
JVMBridgeBaseEnumerable<Iterable<ConsumerRecord<K, V>>, ConsumerRecord<K, V>>.GetEnumerator()JVMBridgeBaseEnumerable<Iterable<ConsumerRecord<K, V>>>.GetEnumerator()JVMBridgeBase<Iterable<ConsumerRecord<K, V>>>.SExecuteWithSignature(string, string, params object[])JVMBridgeBase<Iterable<ConsumerRecord<K, V>>>.IsAssignableFrom(IJavaType)JVMBridgeBase<Iterable<ConsumerRecord<K, V>>>.IsAssignableFrom<T>()JVMBridgeBase<Iterable<ConsumerRecord<K, V>>>.Execute<T>(params T[])JVMBridgeBase<Iterable<ConsumerRecord<K, V>>>.DynBridgeClazzJVMBridgeBase<Iterable<ConsumerRecord<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.Execute<T>(params T[])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
ConsumerRecords()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public ConsumerRecords()
ConsumerRecords(Map<TopicPartition, List<ConsumerRecord<K, V>>>)
public ConsumerRecords(Map<TopicPartition, List<ConsumerRecord<K, V>>> arg0)
Parameters
arg0
Map<TopicPartition, List<ConsumerRecord<K, V>>>
ConsumerRecords(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 ConsumerRecords(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
EMPTY
public static ConsumerRecords<object, object> EMPTY { 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
Count()
public int Count()
Returns
Empty()
public static ConsumerRecords<K, V> Empty()
Returns
IsEmpty()
public bool IsEmpty()
Returns
Iterator()
public Iterator<ConsumerRecord<K, V>> Iterator()
Returns
- Iterator<ConsumerRecord<K, V>>
Partitions()
public Set<TopicPartition> Partitions()
Returns
Records(String)
public Iterable<ConsumerRecord<K, V>> Records(String arg0)
Parameters
Returns
- Iterable<ConsumerRecord<K, V>>
Records(TopicPartition)
public List<ConsumerRecord<K, V>> Records(TopicPartition arg0)
Parameters
Returns
- List<ConsumerRecord<K, V>>
Operators
implicit operator ConsumerRecords(ConsumerRecords<K, V>)
Converter from ConsumerRecords<K, V> to ConsumerRecords
public static implicit operator ConsumerRecords(ConsumerRecords<K, V> t)
Parameters
t
ConsumerRecords<K, V>