T - このイベントに含まれるデータの型 public final class ServerSentEvent<T> extends ObjectSE
Flux<ServerSentEvent> または Observable<ServerSentEvent> は、Spring MVC の SseEmitter と同等のリアクティブです。ServerSentEventHttpMessageWriter, サーバー送信イベント W3C の推奨事項| 修飾子と型 | クラスと説明 |
|---|---|
static interface | ServerSentEvent.Builder<T>SseEvent の変更可能なビルダー。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
static <T> ServerSentEvent.Builder<T> | builder()SseEvent のビルダーを返します。 |
static <T> ServerSentEvent.Builder<T> | builder(T data) 指定されたデータが入力された SseEvent のビルダーを返します。 |
StringSE | comment() 可能であれば、このイベントのコメントを返します。 |
T | data() 可能であれば、このイベントの data フィールドを返します。 |
StringSE | event() 可能であれば、このイベントの event フィールドを返します。 |
StringSE | id() 可能であれば、このイベントの id フィールドを返します。 |
DurationSE | retry() 可能であれば、このイベントの retry フィールドを返します。 |
StringSE | toString() |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE@Nullable public DurationSE retry()
retry フィールドを返します。public StringSE toString()
ObjectSE の toStringSE public static <T> ServerSentEvent.Builder<T> builder()
SseEvent のビルダーを返します。T - このイベントに含まれるデータの型 public static <T> ServerSentEvent.Builder<T> builder(T data)
SseEvent のビルダーを返します。T - このイベントに含まれるデータの型