Class KafkaSubscriber<K,V>
java.lang.Object
io.helidon.messaging.connectors.kafka.KafkaSubscriber<K,V>
- Type Parameters:
K
- kafka record key typeV
- kafka record value type
- All Implemented Interfaces:
Subscriber<Message<V>>
Reactive streams subscriber implementation.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <K,
V> KafkaSubscriber.Builder<K, V> builder()
A builder for KafkaSubscriber.static <K,
V> KafkaSubscriber<K, V> Load this builder from a configuration.void
void
void
void
onSubscribe
(Subscription subscription)
-
Method Details
-
onSubscribe
- Specified by:
onSubscribe
in interfaceSubscriber<K>
-
onNext
- Specified by:
onNext
in interfaceSubscriber<K>
-
onError
- Specified by:
onError
in interfaceSubscriber<K>
-
onComplete
public void onComplete()- Specified by:
onComplete
in interfaceSubscriber<K>
-
builder
A builder for KafkaSubscriber.- Type Parameters:
K
- Key typeV
- Value type- Returns:
- builder to create a new instance
-
create
Load this builder from a configuration.- Type Parameters:
K
- Key typeV
- Value type- Parameters:
config
- configuration to load from- Returns:
- updated builder instance
-