/** * Prepare an endpoint for shutdown by waiting until all its pending exchanges have been finished. * * @param endpoint the endpoint that is about to be shut down * @throws InterruptedException */ public void prepareShutdown(Endpoint endpoint) throws InterruptedException { prepareShutdown(endpoint, 0); }