My Gateway looks like this ...
@MessagingGateway
public interface MyGateway {
@Gateway(requestChannel = "startChannel", replyTimeout = 1000L)
ListenableFuture<Boolean> myFlow();
}
I use an application.yml
file to define some properties which I use throughout my application. One of those is a timeout
value.
I would like to make MyGateway
's replyTimeout
parameter configurable.
Could someone suggest how I can do that?
Note that MyGateway
is an Interface so I cannot use @PostConstruct
or @Autowired
(as I understand it).
Thanks in advance!