/** * Specify the timeout value for sending to the discard channel. * @param timeout the timeout in milliseconds */ public void setTimeout(long timeout) { this.messagingTemplate.setSendTimeout(timeout); }
/** * Set the timeout value for sending request messages. If not * explicitly configured, the default is one second. * @param requestTimeout the timeout value in milliseconds */ public void setRequestTimeout(long requestTimeout) { this.messagingTemplate.setSendTimeout(requestTimeout); }
/** * Specify the maximum time to wait for a Message to be sent to the * output channel. * * @param sendTimeout The send timeout. */ public void setSendTimeout(long sendTimeout) { this.messagingTemplate.setSendTimeout(sendTimeout); }
/** * Set the timeout for sending a message to the resolved channel. * By default, there is no timeout, meaning the send will block indefinitely. * @param timeout The timeout. * @since 4.3 */ public void setSendTimeout(long timeout) { this.messagingTemplate.setSendTimeout(timeout); }
/** * Set the timeout for sending reply Messages. * @param sendTimeout The send timeout. */ public void setSendTimeout(long sendTimeout) { this.messagingTemplate.setSendTimeout(sendTimeout); }
/** * Configure the default timeout value to use for send operations. * May be overridden for individual messages. * @param sendTimeout the send timeout in milliseconds * @see MessagingTemplate#setSendTimeout */ public void setSendTimeout(long sendTimeout) { this.messagingTemplate.setSendTimeout(sendTimeout); }
public final void setSendTimeout(long sendTimeout) { this.messagingTemplate.setSendTimeout(sendTimeout); }
/** * If errorOnTimeout is true, construct an instance that will send an * {@link ErrorMessage} with a {@link MessageTimeoutException} payload to the error * channel if a reply is expected but none is received. If no error channel is * configured, the {@link MessageTimeoutException} will be thrown. * * @param errorOnTimeout true to create the error message. * @since 4.2 */ public MessagingGatewaySupport(boolean errorOnTimeout) { MessagingTemplate template = new MessagingTemplate(); template.setMessageConverter(this.messageConverter); template.setSendTimeout(DEFAULT_TIMEOUT); template.setReceiveTimeout(this.replyTimeout); this.messagingTemplate = template; this.errorOnTimeout = errorOnTimeout; }
/** * Configure the default timeout value to use for send operations. * May be overridden for individual messages. * @param sendTimeout the send timeout in milliseconds * @see MessagingTemplate#setSendTimeout */ public void setSendTimeout(long sendTimeout) { this.messagingTemplate.setSendTimeout(sendTimeout); }
/** * Specify the maximum time to wait for a Message to be sent to the * output channel. * * @param sendTimeout The send timeout. */ public void setSendTimeout(long sendTimeout) { this.messagingTemplate.setSendTimeout(sendTimeout); }
/** * Specify the timeout value for sending to the discard channel. * @param timeout the timeout in milliseconds */ public void setTimeout(long timeout) { this.messagingTemplate.setSendTimeout(timeout); }
/** * Set the timeout value for sending request messages. If not * explicitly configured, the default is one second. * @param requestTimeout the timeout value in milliseconds */ public void setRequestTimeout(long requestTimeout) { this.messagingTemplate.setSendTimeout(requestTimeout); }
/** * Set the timeout for sending reply Messages. * @param sendTimeout The send timeout. */ public void setSendTimeout(long sendTimeout) { this.messagingTemplate.setSendTimeout(sendTimeout); }
/** * Set the timeout for sending a message to the resolved channel. * By default, there is no timeout, meaning the send will block indefinitely. * @param timeout The timeout. * @since 4.3 */ public void setSendTimeout(long timeout) { this.messagingTemplate.setSendTimeout(timeout); }
public final void setSendTimeout(long sendTimeout) { this.messagingTemplate.setSendTimeout(sendTimeout); }
/** * If errorOnTimeout is true, construct an instance that will send an * {@link ErrorMessage} with a {@link MessageTimeoutException} payload to the error * channel if a reply is expected but none is received. If no error channel is * configured, the {@link MessageTimeoutException} will be thrown. * * @param errorOnTimeout true to create the error message. * @since 4.2 */ public MessagingGatewaySupport(boolean errorOnTimeout) { MessagingTemplate template = new MessagingTemplate(); template.setMessageConverter(this.messageConverter); template.setSendTimeout(DEFAULT_TIMEOUT); template.setReceiveTimeout(this.replyTimeout); this.messagingTemplate = template; this.errorOnTimeout = errorOnTimeout; }