Interface ShutdownController
- All Known Implementing Classes:
ExecutorShutdownController,ShutdownController.Wrapper
public interface ShutdownController
The shutdown controller allows registering hooks run on the three shutdown phases:
- prepare: stop accepting new work (e.g. stop accepting HTTP requests).
- perform: shut things down, save state if applicable etc.
- finalize: shutdown the core components like the work thread pool or a database connections.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic classstatic enumstatic class -
Method Summary
Modifier and TypeMethodDescriptionvoidonFinalize(io.vavr.CheckedRunnable callback) voidonPerform(io.vavr.CheckedRunnable callback) voidonPrepare(io.vavr.CheckedRunnable callback) state()
-
Method Details
-
onPrepare
void onPrepare(io.vavr.CheckedRunnable callback) -
onPerform
void onPerform(io.vavr.CheckedRunnable callback) -
onFinalize
void onFinalize(io.vavr.CheckedRunnable callback) -
state
ShutdownController.State state()
-