StreamEventType - Data to push over the open streampublic interface StreamEventPublisher<StreamEventType extends EventStreamJsonMessage>
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
closeStream()
Closes the stream by sending an empty message
|
CompletableFuture<Void> |
sendStreamEvent(StreamEventType streamEvent)
Publish an event over an open stream operation.
|
CompletableFuture<Void> sendStreamEvent(StreamEventType streamEvent)
streamEvent - event to publishCompletableFuture<Void> closeStream()
Copyright ? 2021. All rights reserved.