public class ReactiveLifecycleManager extends java.lang.Object implements StateMachineReactiveLifecycle
Modifier and Type | Class and Description |
---|---|
static class |
ReactiveLifecycleManager.LifecycleState |
Constructor and Description |
---|
ReactiveLifecycleManager(java.util.function.Supplier<reactor.core.publisher.Mono<java.lang.Void>> preStartRequest,
java.util.function.Supplier<reactor.core.publisher.Mono<java.lang.Void>> preStopRequest,
java.util.function.Supplier<reactor.core.publisher.Mono<java.lang.Void>> postStartRequest,
java.util.function.Supplier<reactor.core.publisher.Mono<java.lang.Void>> postStopRequest) |
Modifier and Type | Method and Description |
---|---|
ReactiveLifecycleManager.LifecycleState |
getLifecycleState() |
boolean |
isRunning() |
void |
setOwner(java.lang.Object owner) |
reactor.core.publisher.Mono<java.lang.Void> |
startReactively()
Starts component reactively.
|
reactor.core.publisher.Mono<java.lang.Void> |
stopReactively()
Stops component reactively.
|
java.lang.String |
toString() |
public ReactiveLifecycleManager(java.util.function.Supplier<reactor.core.publisher.Mono<java.lang.Void>> preStartRequest, java.util.function.Supplier<reactor.core.publisher.Mono<java.lang.Void>> preStopRequest, java.util.function.Supplier<reactor.core.publisher.Mono<java.lang.Void>> postStartRequest, java.util.function.Supplier<reactor.core.publisher.Mono<java.lang.Void>> postStopRequest)
public reactor.core.publisher.Mono<java.lang.Void> startReactively()
StateMachineReactiveLifecycle
startReactively
in interface StateMachineReactiveLifecycle
public reactor.core.publisher.Mono<java.lang.Void> stopReactively()
StateMachineReactiveLifecycle
stopReactively
in interface StateMachineReactiveLifecycle
public void setOwner(java.lang.Object owner)
public ReactiveLifecycleManager.LifecycleState getLifecycleState()
public boolean isRunning()
public java.lang.String toString()
toString
in class java.lang.Object