protected void postProcessReplyProducer(AbstractMessageProducingHandler handler) { if (this.sendTimeout != null) { handler.setSendTimeout(this.sendTimeout); } if (this.requiresReply != null) { if (handler instanceof AbstractReplyProducingMessageHandler) { ((AbstractReplyProducingMessageHandler) handler).setRequiresReply(this.requiresReply); } else { if (this.requiresReply && logger.isDebugEnabled()) { logger.debug("requires-reply can only be set to AbstractReplyProducingMessageHandler " + "or its subclass, " + handler.getBeanName() + " doesn't support it."); } } } }
/** * @param sendTimeout the send timeout. * @return the endpoint spec. * @see AbstractMessageProducingHandler#setSendTimeout(long) */ public S sendTimeout(long sendTimeout) { assertHandler(); if (this.handler instanceof AbstractMessageProducingHandler) { ((AbstractMessageProducingHandler) this.handler).setSendTimeout(sendTimeout); } else if (this.handler instanceof AbstractMessageRouter) { // This should probably go on the RouterSpec, but we put it here for consistency ((AbstractMessageRouter) this.handler).setSendTimeout(sendTimeout); } else { this.logger.warn("'sendTimeout' can be applied only for AbstractMessageProducingHandler"); } return _this(); }
long value = Long.parseLong(resolvedValue); if (handler instanceof AbstractMessageProducingHandler) { ((AbstractMessageProducingHandler) handler).setSendTimeout(value);
protected void postProcessReplyProducer(AbstractMessageProducingHandler handler) { if (this.sendTimeout != null) { handler.setSendTimeout(this.sendTimeout); } if (this.requiresReply != null) { if (handler instanceof AbstractReplyProducingMessageHandler) { ((AbstractReplyProducingMessageHandler) handler).setRequiresReply(this.requiresReply); } else { if (this.requiresReply && logger.isDebugEnabled()) { logger.debug("requires-reply can only be set to AbstractReplyProducingMessageHandler " + "or its subclass, " + handler.getComponentName() + " doesn't support it."); } } } }
/** * @param sendTimeout the send timeout. * @return the endpoint spec. * @see AbstractMessageProducingHandler#setSendTimeout(long) */ public S sendTimeout(long sendTimeout) { assertHandler(); if (this.handler instanceof AbstractMessageProducingHandler) { ((AbstractMessageProducingHandler) this.handler).setSendTimeout(sendTimeout); } else if (this.handler instanceof AbstractMessageRouter) { // This should probably go on the RouterSpec, but we put it here for consistency ((AbstractMessageRouter) this.handler).setSendTimeout(sendTimeout); } else { this.logger.warn("'sendTimeout' can be applied only for AbstractMessageProducingHandler"); } return _this(); }
long value = Long.parseLong(resolvedValue); if (handler instanceof AbstractMessageProducingHandler) { ((AbstractMessageProducingHandler) handler).setSendTimeout(value);