mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-21 21:39:05 +00:00
Polishing
This commit is contained in:
@@ -52,8 +52,8 @@ public interface Lifecycle {
|
||||
/**
|
||||
* Start this component.
|
||||
* <p>Should not throw an exception if the component is already running.
|
||||
* <p>In the case of a container, this will propagate the start signal to all
|
||||
* components that apply.
|
||||
* <p>In the case of a container, this will propagate a hard start signal to all
|
||||
* components that apply, even to non-auto-startup components.
|
||||
* @see SmartLifecycle#isAutoStartup()
|
||||
*/
|
||||
void start();
|
||||
|
||||
+2
-3
@@ -46,11 +46,10 @@ public class SseEmitter extends ResponseBodyEmitter {
|
||||
|
||||
private static final MediaType TEXT_PLAIN = new MediaType("text", "plain", StandardCharsets.UTF_8);
|
||||
|
||||
/**
|
||||
* Guards access to write operations on the response.
|
||||
*/
|
||||
/** Guards access to write operations on the response. */
|
||||
private final Lock writeLock = new ReentrantLock();
|
||||
|
||||
|
||||
/**
|
||||
* Create a new SseEmitter instance.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user