@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; }
/** * 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);
/** * Sets the timeout for each {@link KafkaConsumer#poll(long)} operation. Since * the underlying Kafka consumer is not thread-safe, long poll intervals may delay * commits and other operations invoked using {@link KafkaReceiver#doOnConsumer(java.util.function.Function)}. * Very short timeouts may reduce batching and increase load on the broker, * @return options instance with new poll timeout */ @NonNull ReceiverOptions<K, V> pollTimeout(@NonNull Duration timeout);
/** * Builder method that returns new instance of {@link SchedulerClock} which is * constructed from old {@link ZoneId} and passed {@link Scheduler} instance * * @return {@link SchedulerClock} instance */ @NonNull public SchedulerClock withScheduler(Scheduler scheduler) { return new SchedulerClock(scheduler, zone); }