Document Lifecycle#stop concurrency semantics
Issue: SPR-8570
This commit is contained in:
parent
fa7f13016e
commit
35d2ab3bf9
|
|
@ -55,10 +55,14 @@ public interface Lifecycle {
|
||||||
void start();
|
void start();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stop this component.
|
* Stop this component, typically in a synchronous fashion, such that
|
||||||
* Should not throw an exception if the component isn't started yet.
|
* the component is fully stopped upon return of this method. Consider
|
||||||
|
* implementing {@link SmartLifecycle} and its {@code stop(Runnable)}
|
||||||
|
* variant in cases where asynchronous stop behavior is necessary.
|
||||||
|
* <p>Should not throw an exception if the component isn't started yet.
|
||||||
* <p>In the case of a container, this will propagate the stop signal
|
* <p>In the case of a container, this will propagate the stop signal
|
||||||
* to all components that apply.
|
* to all components that apply.
|
||||||
|
* @see SmartLifecycle#stop(Runnable)
|
||||||
*/
|
*/
|
||||||
void stop();
|
void stop();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue