waitForShutdown abstract method

Future<void> waitForShutdown()

Wait until the application has called {@link #shutdown} (or {@link #destroy}). On the server side, this operation blocks the calling thread until all currently-executing operations have completed. On the client side, the operation simply blocks until another thread has called {@link #shutdown} or {@link #destroy}. A typical use of this operation is to call it from the main thread, which then waits until some other thread calls {@link #shutdown}. After shut-down is complete, the main thread returns and can do some cleanup work before it finally calls {@link #destroy} to shut down the client functionality, and then exits the application. @see #shutdown @see #destroy @see ObjectAdapter#waitForDeactivate

Implementation

Future<void> waitForShutdown();