/** * Allow async replies. If the handler reply is a * {@code org.springframework.util.concurrent.ListenableFuture}, send the output when * it is satisfied rather than sending the future as the result. Ignored for handler * return types other than * {@link org.springframework.util.concurrent.ListenableFuture}. * @param async true to allow. * @return the endpoint spec. * @see AbstractMessageProducingHandler#setAsync(boolean) */ public S async(boolean async) { assertHandler(); if (this.handler instanceof AbstractMessageProducingHandler) { ((AbstractMessageProducingHandler) this.handler).setAsync(async); } else { this.logger.warn("'async' can be applied only for AbstractMessageProducingHandler"); } return _this(); }
if (actualHandler instanceof AbstractMessageProducingHandler) { ((AbstractMessageProducingHandler) actualHandler) .setAsync(this.async);
/** * Allow async replies. If the handler reply is a * {@code org.springframework.util.concurrent.ListenableFuture}, send the output when * it is satisfied rather than sending the future as the result. Ignored for handler * return types other than * {@link org.springframework.util.concurrent.ListenableFuture}. * @param async true to allow. * @return the endpoint spec. * @see AbstractMessageProducingHandler#setAsync(boolean) */ public S async(boolean async) { assertHandler(); if (this.handler instanceof AbstractMessageProducingHandler) { ((AbstractMessageProducingHandler) this.handler).setAsync(async); } else { this.logger.warn("'async' can be applied only for AbstractMessageProducingHandler"); } return _this(); }
if (actualHandler instanceof AbstractMessageProducingHandler) { ((AbstractMessageProducingHandler) actualHandler) .setAsync(this.async);