Initiate the shutdown of the managed object. This method is asynchronous, it returns immediately.
()
| 73 | * asynchronous, it returns immediately. |
| 74 | */ |
| 75 | public synchronized void beginShutdown() { |
| 76 | if (shutdown) |
| 77 | throw new IllegalStateException("Already shutting down"); |
| 78 | |
| 79 | shutdown = true; |
| 80 | } |
| 81 | |
| 82 | /** |
| 83 | * Synchronously wait for the shutdown to complete, i.e. waits for |