/** * @param sendTimeout the send timeout. * @return the endpoint spec. * @see AbstractReplyProducingMessageHandler#setSendTimeout(long) */ public S sendTimeout(long sendTimeout) { assertHandler(); if (this.handler instanceof AbstractReplyProducingMessageHandler) { ((AbstractReplyProducingMessageHandler) this.handler).setSendTimeout(sendTimeout); } else { logger.warn("'sendTimeout' can be applied only for AbstractReplyProducingMessageHandler"); } return _this(); }
/** * @param sendTimeout the send timeout. * @return the endpoint spec. * @see AbstractReplyProducingMessageHandler#setSendTimeout(long) */ public S sendTimeout(long sendTimeout) { assertHandler(); if (this.handler instanceof AbstractReplyProducingMessageHandler) { ((AbstractReplyProducingMessageHandler) this.handler).setSendTimeout(sendTimeout); } else { logger.warn("'sendTimeout' can be applied only for AbstractReplyProducingMessageHandler"); } return _this(); }
/** * Specify a timeout in milliseconds for how long this * {@link KafkaProducerMessageHandler} should wait wait for send operation * results. Defaults to 10 seconds. The timeout is applied only in {@link #sync} mode. * Also applies when sending to the success or failure channels. * @param sendTimeout the timeout to wait for result fo send operation. * @since 2.0.1 */ @Override public void setSendTimeout(long sendTimeout) { super.setSendTimeout(sendTimeout); setSendTimeoutExpression(new ValueExpression<>(sendTimeout)); }
/** * Specify a timeout in milliseconds for how long this * {@link KafkaProducerMessageHandler} should wait wait for send operation * results. Defaults to 10 seconds. The timeout is applied only in {@link #sync} mode. * Also applies when sending to the success or failure channels. * @param sendTimeout the timeout to wait for result fo send operation. * @since 2.0.1 */ @Override public void setSendTimeout(long sendTimeout) { super.setSendTimeout(sendTimeout); setSendTimeoutExpression(new ValueExpression<>(sendTimeout)); }