@Value.Immutable
public interface SseEvent
| Modifier and Type | Interface and Description |
|---|---|
static class |
SseEvent.Builder |
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_EVENT |
| Modifier and Type | Method and Description |
|---|---|
static SseEvent.Builder |
builder() |
Set<String> |
clientIds() |
Optional<String> |
comment() |
Object |
data() |
default String |
event() |
Set<String> |
excludeClientIds()
Is ignored when clientIds is not empty
|
Optional<String> |
id() |
static SseEvent |
of(String event,
Object data)
Creates a SseEvent that just contains an event and data.
|
static SseEvent |
ofData(Object data)
Creates a SseEvent that just contains the data.
|
static SseEvent |
ofEvent(String event)
Creates a SseEvent that contains an event and an empty string
|
Optional<Duration> |
retry() |
static final String DEFAULT_EVENT
@Value.Default default String event()
Object data()
static SseEvent ofData(Object data)
static SseEvent ofEvent(String event)
static SseEvent of(String event, Object data)
static SseEvent.Builder builder()
Copyright © 2016–2017. All rights reserved.