Package org.axonframework.lifecycle
Interface Lifecycle.LifecycleHandler
- Enclosing interface:
Lifecycle
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface for lifecycle activities that may run asynchronously
-
Method Summary
-
Method Details
-
run
CompletableFuture<Void> run()Execute the lifecycle activity.Implementations preferably do not throw exceptions, but return a
CompletableFuturewith an exceptional result instead.- Returns:
- a CompletableFuture that completes when the activity completes.
-