in client/src/main/java/co/elastic/opamp/client/request/service/HttpRequestService.java [90:103]
public void start(Callback callback, Supplier<Request> requestSupplier) {
synchronized (runningLock) {
if (isStopped) {
throw new IllegalStateException("RequestDispatcher has been stopped");
}
if (isRunning) {
throw new IllegalStateException("RequestDispatcher is already running");
}
this.callback = callback;
this.requestSupplier = requestSupplier;
executor.start(this);
isRunning = true;
}
}