public class ClientShutdown extends Object
| 构造器和说明 |
|---|
ClientShutdown() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
countDown()
Decrements the count of the latch, releasing all waiting threads if
the count reaches zero.
|
void |
prepareDestroy()
Called when the application is closed.
|
public void prepareDestroy()
throws InterruptedException
public void countDown()
If the current count is greater than zero then it is decremented. If the new count is zero then all waiting threads are re-enabled for thread scheduling purposes.
If the current count equals zero then nothing happens.
Copyright © 2023. All rights reserved.