Added additional callback methods to EventCallback by sabre1041 · Pull Request #60 · docker-java/docker-java
@marcuslinke The status of the thread unfortunately cannot be determined by querying the ExecutorService. When the thread for the particular request completes, the ExecutorService will not report a shutdown state as it will still be accepting new threads. Shutdown will only indicate that it is not accepting new threads. It can be determined by querying the ExecutorService.isTerminated(), but that would still require the client to poll the status of the thread.
Having some form of completion notification would allow the client to react on the completion of a request (report back an error or potentially initiate a new request).