Uses of Interface
ratpack.sse.Event
-
Packages that use Event Package Description ratpack.sse Support for Server Sent Events. -
-
Uses of Event in ratpack.sse
Methods in ratpack.sse that return Event Modifier and Type Method Description Event<T>
Event. comment(java.lang.String comment)
Specify a comment to include as part of this event.Event<T>
Event. data(java.lang.String data)
Specify the event data for the server sent event.Event<T>
Event. data(Function<? super T,java.lang.String> function)
Sets the “data” value of the event to the return value of the given function.Event<T>
Event. event(java.lang.String event)
Specify the event type for the server sent event.Event<T>
Event. event(Function<? super T,java.lang.String> function)
Sets the “event” value of the event to the return value of the given function.Event<T>
Event. id(java.lang.String id)
Specify the event id for the server sent event.Event<T>
Event. id(Function<? super T,java.lang.String> function)
Sets the “id” value of the event to the return value of the given function.Methods in ratpack.sse that return types with arguments of type Event Modifier and Type Method Description Publisher<? extends Event<?>>
ServerSentEvents. getPublisher()
The stream of events.default Promise<TransformablePublisher<Event<?>>>
ServerSentEventStreamClient. request(java.net.URI uri)
Promise<TransformablePublisher<Event<?>>>
ServerSentEventStreamClient. request(java.net.URI uri, Action<? super RequestSpec> action)
Method parameters in ratpack.sse with type arguments of type Event Modifier and Type Method Description static <T> ServerSentEvents
ServerSentEvents. serverSentEvents(Publisher<T> publisher, Action<? super Event<T>> action)
Creates a new renderable object wrapping the event stream.
-