Class KafkaConsumerRecords<K,V>
java.lang.Object
io.vertx.mutiny.kafka.client.consumer.KafkaConsumerRecords<K,V>
- All Implemented Interfaces:
MutinyDelegate
Vert.x Kafka consumer records
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- See Also:
-
KafkaConsumerRecords
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionKafkaConsumerRecords(io.vertx.kafka.client.consumer.KafkaConsumerRecords<K, V> delegate) Create a new instance ofKafkaConsumerRecordsdelegating to the given (non-null) instance ofKafkaConsumerRecords.KafkaConsumerRecords(io.vertx.kafka.client.consumer.KafkaConsumerRecords<K, V> delegate, TypeArg<K> typeArg_0, TypeArg<V> typeArg_1) -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the delegate instance.inthashCode()booleanisEmpty()static <K,V> KafkaConsumerRecords<K, V> newInstance(io.vertx.kafka.client.consumer.KafkaConsumerRecords<K, V> delegate) Creates a new instance of theKafkaConsumerRecords.static <K,V> KafkaConsumerRecords<K, V> newInstance(io.vertx.kafka.client.consumer.KafkaConsumerRecords<K, V> delegate, TypeArg<K> typeArg_0, TypeArg<V> typeArg_1) Creates a new instance of theKafkaConsumerRecords.recordAt(int index) Get the record at the given indexintsize()toString()
-
Field Details
-
__TYPE_ARG
-
__typeArg_0
-
__typeArg_1
-
-
Constructor Details
-
KafkaConsumerRecords
Create a new instance ofKafkaConsumerRecordsdelegating to the given (non-null) instance ofKafkaConsumerRecords. -
KafkaConsumerRecords
-
KafkaConsumerRecords
-
-
Method Details
-
getDelegate
Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
size
public int size()- Returns:
- the total number of records in this batch
-
isEmpty
public boolean isEmpty()- Returns:
- whether this batch contains any records
-
recordAt
Get the record at the given index- Parameters:
index- the index of the record to get
-
newInstance
public static <K,V> KafkaConsumerRecords<K,V> newInstance(io.vertx.kafka.client.consumer.KafkaConsumerRecords<K, V> delegate) Creates a new instance of theKafkaConsumerRecords. -
newInstance
public static <K,V> KafkaConsumerRecords<K,V> newInstance(io.vertx.kafka.client.consumer.KafkaConsumerRecords<K, V> delegate, TypeArg<K> typeArg_0, TypeArg<V> typeArg_1) Creates a new instance of theKafkaConsumerRecords. -
hashCode
public int hashCode() -
equals
-
toString
-