K - The key typeA - The attributes typeT - The CloudEvent 'data' typepublic class CloudEventsKafkaConsumer<K,A extends Attributes,T> extends Object implements org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A,T>>
| Constructor and Description |
|---|
CloudEventsKafkaConsumer(Properties configuration,
HeadersStep<A,T,byte[]> builder)
Instantiate a consumer prepared to unmarshal the events from Kafka
|
| Modifier and Type | Method and Description |
|---|---|
void |
assign(Collection<org.apache.kafka.common.TopicPartition> arg0) |
Set<org.apache.kafka.common.TopicPartition> |
assignment() |
Map<org.apache.kafka.common.TopicPartition,Long> |
beginningOffsets(Collection<org.apache.kafka.common.TopicPartition> arg0) |
Map<org.apache.kafka.common.TopicPartition,Long> |
beginningOffsets(Collection<org.apache.kafka.common.TopicPartition> arg0,
Duration arg1) |
void |
close() |
void |
close(Duration arg0) |
void |
close(long arg0,
TimeUnit arg1)
Deprecated.
|
void |
commitAsync() |
void |
commitAsync(Map<org.apache.kafka.common.TopicPartition,org.apache.kafka.clients.consumer.OffsetAndMetadata> arg0,
org.apache.kafka.clients.consumer.OffsetCommitCallback arg1) |
void |
commitAsync(org.apache.kafka.clients.consumer.OffsetCommitCallback arg0) |
void |
commitSync() |
void |
commitSync(Duration arg0) |
void |
commitSync(Map<org.apache.kafka.common.TopicPartition,org.apache.kafka.clients.consumer.OffsetAndMetadata> arg0) |
void |
commitSync(Map<org.apache.kafka.common.TopicPartition,org.apache.kafka.clients.consumer.OffsetAndMetadata> arg0,
Duration arg1) |
org.apache.kafka.clients.consumer.OffsetAndMetadata |
committed(org.apache.kafka.common.TopicPartition arg0) |
org.apache.kafka.clients.consumer.OffsetAndMetadata |
committed(org.apache.kafka.common.TopicPartition arg0,
Duration arg1) |
Map<org.apache.kafka.common.TopicPartition,Long> |
endOffsets(Collection<org.apache.kafka.common.TopicPartition> arg0) |
Map<org.apache.kafka.common.TopicPartition,Long> |
endOffsets(Collection<org.apache.kafka.common.TopicPartition> arg0,
Duration arg1) |
Map<String,List<org.apache.kafka.common.PartitionInfo>> |
listTopics() |
Map<String,List<org.apache.kafka.common.PartitionInfo>> |
listTopics(Duration arg0) |
Map<org.apache.kafka.common.MetricName,? extends org.apache.kafka.common.Metric> |
metrics() |
Map<org.apache.kafka.common.TopicPartition,org.apache.kafka.clients.consumer.OffsetAndTimestamp> |
offsetsForTimes(Map<org.apache.kafka.common.TopicPartition,Long> arg0) |
Map<org.apache.kafka.common.TopicPartition,org.apache.kafka.clients.consumer.OffsetAndTimestamp> |
offsetsForTimes(Map<org.apache.kafka.common.TopicPartition,Long> arg0,
Duration arg1) |
List<org.apache.kafka.common.PartitionInfo> |
partitionsFor(String arg0) |
List<org.apache.kafka.common.PartitionInfo> |
partitionsFor(String arg0,
Duration arg1) |
void |
pause(Collection<org.apache.kafka.common.TopicPartition> arg0) |
Set<org.apache.kafka.common.TopicPartition> |
paused() |
org.apache.kafka.clients.consumer.ConsumerRecords<K,CloudEvent<A,T>> |
poll(Duration duration) |
org.apache.kafka.clients.consumer.ConsumerRecords<K,CloudEvent<A,T>> |
poll(long timeout)
Deprecated.
|
long |
position(org.apache.kafka.common.TopicPartition arg0) |
long |
position(org.apache.kafka.common.TopicPartition arg0,
Duration arg1) |
void |
resume(Collection<org.apache.kafka.common.TopicPartition> arg0) |
void |
seek(org.apache.kafka.common.TopicPartition arg0,
long arg1) |
void |
seekToBeginning(Collection<org.apache.kafka.common.TopicPartition> arg0) |
void |
seekToEnd(Collection<org.apache.kafka.common.TopicPartition> arg0) |
void |
subscribe(Collection<String> arg0) |
void |
subscribe(Collection<String> arg0,
org.apache.kafka.clients.consumer.ConsumerRebalanceListener arg1) |
void |
subscribe(Pattern arg0) |
void |
subscribe(Pattern arg0,
org.apache.kafka.clients.consumer.ConsumerRebalanceListener arg1) |
Set<String> |
subscription() |
void |
unsubscribe() |
void |
wakeup() |
public CloudEventsKafkaConsumer(Properties configuration, HeadersStep<A,T,byte[]> builder)
configuration - To build the KafkaConsumer for delegationbuilder - The builder to build the CloudEvent@Deprecated public org.apache.kafka.clients.consumer.ConsumerRecords<K,CloudEvent<A,T>> poll(long timeout)
poll in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public org.apache.kafka.clients.consumer.ConsumerRecords<K,CloudEvent<A,T>> poll(Duration duration)
poll in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public void assign(Collection<org.apache.kafka.common.TopicPartition> arg0)
assign in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public Set<org.apache.kafka.common.TopicPartition> assignment()
assignment in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public Map<org.apache.kafka.common.TopicPartition,Long> beginningOffsets(Collection<org.apache.kafka.common.TopicPartition> arg0)
beginningOffsets in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public Map<org.apache.kafka.common.TopicPartition,Long> beginningOffsets(Collection<org.apache.kafka.common.TopicPartition> arg0, Duration arg1)
beginningOffsets in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public void close()
close in interface Closeableclose in interface AutoCloseableclose in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public void close(Duration arg0)
close in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>@Deprecated public void close(long arg0, TimeUnit arg1)
close in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public void commitAsync()
commitAsync in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public void commitAsync(org.apache.kafka.clients.consumer.OffsetCommitCallback arg0)
commitAsync in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public void commitAsync(Map<org.apache.kafka.common.TopicPartition,org.apache.kafka.clients.consumer.OffsetAndMetadata> arg0, org.apache.kafka.clients.consumer.OffsetCommitCallback arg1)
commitAsync in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public void commitSync()
commitSync in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public void commitSync(Duration arg0)
commitSync in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public void commitSync(Map<org.apache.kafka.common.TopicPartition,org.apache.kafka.clients.consumer.OffsetAndMetadata> arg0)
commitSync in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public void commitSync(Map<org.apache.kafka.common.TopicPartition,org.apache.kafka.clients.consumer.OffsetAndMetadata> arg0, Duration arg1)
commitSync in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public org.apache.kafka.clients.consumer.OffsetAndMetadata committed(org.apache.kafka.common.TopicPartition arg0)
committed in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public org.apache.kafka.clients.consumer.OffsetAndMetadata committed(org.apache.kafka.common.TopicPartition arg0,
Duration arg1)
committed in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public Map<org.apache.kafka.common.TopicPartition,Long> endOffsets(Collection<org.apache.kafka.common.TopicPartition> arg0)
endOffsets in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public Map<org.apache.kafka.common.TopicPartition,Long> endOffsets(Collection<org.apache.kafka.common.TopicPartition> arg0, Duration arg1)
endOffsets in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public Map<String,List<org.apache.kafka.common.PartitionInfo>> listTopics()
listTopics in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public Map<String,List<org.apache.kafka.common.PartitionInfo>> listTopics(Duration arg0)
listTopics in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public Map<org.apache.kafka.common.MetricName,? extends org.apache.kafka.common.Metric> metrics()
metrics in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public Map<org.apache.kafka.common.TopicPartition,org.apache.kafka.clients.consumer.OffsetAndTimestamp> offsetsForTimes(Map<org.apache.kafka.common.TopicPartition,Long> arg0)
offsetsForTimes in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public Map<org.apache.kafka.common.TopicPartition,org.apache.kafka.clients.consumer.OffsetAndTimestamp> offsetsForTimes(Map<org.apache.kafka.common.TopicPartition,Long> arg0, Duration arg1)
offsetsForTimes in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public List<org.apache.kafka.common.PartitionInfo> partitionsFor(String arg0)
partitionsFor in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public List<org.apache.kafka.common.PartitionInfo> partitionsFor(String arg0, Duration arg1)
partitionsFor in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public void pause(Collection<org.apache.kafka.common.TopicPartition> arg0)
pause in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public Set<org.apache.kafka.common.TopicPartition> paused()
paused in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public long position(org.apache.kafka.common.TopicPartition arg0)
position in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public long position(org.apache.kafka.common.TopicPartition arg0,
Duration arg1)
position in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public void resume(Collection<org.apache.kafka.common.TopicPartition> arg0)
resume in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public void seek(org.apache.kafka.common.TopicPartition arg0,
long arg1)
seek in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public void seekToBeginning(Collection<org.apache.kafka.common.TopicPartition> arg0)
seekToBeginning in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public void seekToEnd(Collection<org.apache.kafka.common.TopicPartition> arg0)
seekToEnd in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public void subscribe(Collection<String> arg0)
subscribe in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public void subscribe(Pattern arg0)
subscribe in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public void subscribe(Collection<String> arg0, org.apache.kafka.clients.consumer.ConsumerRebalanceListener arg1)
subscribe in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public void subscribe(Pattern arg0, org.apache.kafka.clients.consumer.ConsumerRebalanceListener arg1)
subscribe in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public Set<String> subscription()
subscription in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public void unsubscribe()
unsubscribe in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>public void wakeup()
wakeup in interface org.apache.kafka.clients.consumer.Consumer<K,CloudEvent<A extends Attributes,T>>Copyright © 2019. All rights reserved.