public class ShutdownLatch.ActivityHandle extends Object implements AutoCloseable
ShutdownLatch
. The end()
method should be
called if the registered activity is finalized.Constructor and Description |
---|
ActivityHandle() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this
ShutdownLatch.ActivityHandle by invoking end() . |
void |
end()
Mark this activity as being finalized.
|
public void end()
ShutdownLatch.registerActivity()
) has ended. This method will complete the ShutdownLatch
if
ShutdownLatch.initiateShutdown()
has been invoked and all activities have ended.public void close()
close
in interface AutoCloseable
Copyright © 2010–2023. All rights reserved.