/** * Specify a timeout in milliseconds to wait for a message in the * {@link org.springframework.messaging.MessageChannel}. * Defaults to {@code 1000}. * @param receiveTimeout the timeout to use. * @return the spec. * @see org.springframework.messaging.PollableChannel#receive(long) */ public PollerSpec receiveTimeout(long receiveTimeout) { this.target.setReceiveTimeout(receiveTimeout); return this; }
pollerMetadata.setReceiveTimeout(Long.parseLong(receiveTimeout));
/** * Specify a timeout in milliseconds to wait for a message in the * {@link org.springframework.messaging.MessageChannel}. * Defaults to {@code 1000}. * @param receiveTimeout the timeout to use. * @return the spec. * @see org.springframework.messaging.PollableChannel#receive(long) */ public PollerSpec receiveTimeout(long receiveTimeout) { this.target.setReceiveTimeout(receiveTimeout); return this; }
/** * Specify a timeout in milliseconds to wait for a message in the * {@link org.springframework.messaging.MessageChannel}. * Defaults to {@code 1000}. * @param receiveTimeout the timeout to use. * @return the spec. * @see org.springframework.messaging.PollableChannel#receive(long) */ public PollerSpec receiveTimeout(long receiveTimeout) { this.target.setReceiveTimeout(receiveTimeout); return this; }
/** * Specify a timeout in milliseconds to wait for a message in the * {@link org.springframework.messaging.MessageChannel}. * Defaults to {@code 1000}. * @param receiveTimeout the timeout to use. * @return the spec. * @see org.springframework.messaging.PollableChannel#receive(long) */ public PollerSpec receiveTimeout(long receiveTimeout) { this.target.setReceiveTimeout(receiveTimeout); return this; }
pollerMetadata.setReceiveTimeout(Long.parseLong(receiveTimeout));