- Type Parameters:
T
- event type
- All Known Subinterfaces:
SseSource
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A listener for arbitrary events.
-
Method Details
-
onOpen
default void onOpen()Handler for event stream creation. -
onEvent
Handler for a newly received event.- Parameters:
event
- the event
-
onClose
default void onClose()Handler for event stream termination. -
onError
Handler for errors encountered during processing of source.- Parameters:
t
- a throwable
-