Class ShutdownLatch.ActivityHandle
java.lang.Object
org.axonframework.common.lifecycle.ShutdownLatch.ActivityHandle
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
ShutdownLatch
A handle for an activity registered to a
ShutdownLatch. The end() method should be
called if the registered activity is finalized.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close thisShutdownLatch.ActivityHandleby invokingend().voidend()Mark this activity as being finalized.
-
Constructor Details
-
ActivityHandle
public ActivityHandle()
-
-
Method Details
-
end
public void end()Mark this activity as being finalized. This method should be invoked once the registered activity (throughShutdownLatch.registerActivity()) has ended. This method will complete theShutdownLatchifShutdownLatch.initiateShutdown()has been invoked and all activities have ended. -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-