@NonNull final T3 t3;
@NonNull final T4 t4;
@NonNull final T5 t5;
@NonNull final T6 t6;
@NonNull final T8 t8;
@NonNull final T7 t7;
/** * Removes all partition revocation listeners. * @return options instance without any partition revocation listeners */ @NonNull ReceiverOptions<K, V> clearRevokeListeners();
/** * Sets subscription using group management to the specified collection of topics. * This subscription is enabled when the receive Flux of a {@link KafkaReceiver} using this * options instance is subscribed to. Any existing subscriptions or assignments on this * option are deleted. * @return options instance with new subscription */ @NonNull ReceiverOptions<K, V> subscription(Collection<String> topics);
/** * Sets subscription using group management to the specified pattern. * This subscription is enabled when the receive Flux of a {@link KafkaReceiver} using this * options instance is subscribed to. Any existing subscriptions or assignments on this * option are deleted. Topics are dynamically assigned or removed when topics * matching the pattern are created or deleted. * @return options instance with new subscription */ @NonNull ReceiverOptions<K, V> subscription(Pattern pattern);
/** * Returns list of configured partition revocation listeners. * @return list of revocation listeners */ @NonNull List<Consumer<Collection<ReceiverPartition>>> revokeListeners();
/** * Returns the timeout for graceful shutdown of this sender. * @return close timeout duration */ @NonNull Duration closeTimeout();
@Override @NonNull public ZoneId getZone() { return zone; }
/** * Return wrapped Scheduler instance * * @return {@link Scheduler} instance */ @NonNull public Scheduler getScheduler() { return scheduler; }
/** * Returns stopOnError configuration which indicates if a send operation * should be terminated when an error is encountered. If set to false, send * is attempted for all records in a sequence even if send of one of the records fails * with a non-fatal exception. * @return boolean indicating if send sequences should fail on first error */ @NonNull boolean stopOnError();
/** * Set a concrete deserializer instant to be used by the {@link KafkaConsumer} for keys. Overrides any setting of the * {@link ConsumerConfig#KEY_DESERIALIZER_CLASS_CONFIG} property. * @param keyDeserializer key deserializer to use in the consumer * @return options instance with new key deserializer */ @NonNull ReceiverOptions<K, V> withKeyDeserializer(@NonNull Deserializer<K> keyDeserializer);