public interface SseEventBusListener
| Modifier and Type | Method and Description |
|---|---|
default void |
afterClientsUnregistered(Set<String> clientIds)
Called each time the library has unregistered one or more stale clients.
|
default void |
afterEventQueued(ClientEvent clientEvent,
boolean firstAttempt)
Called each time a message has been added to the internal sending queue
|
default void |
afterEventSent(ClientEvent clientEvent,
Exception exception)
Called each time a message has been sent either successfully or unsuccessfully
|
default void afterEventQueued(ClientEvent clientEvent, boolean firstAttempt)
clientEvent - Data object comprises the client, event and valuefirstAttempt - true if the message is queued the first time or
false if this is a new attempt after a previous failed deliverydefault void afterEventSent(ClientEvent clientEvent, Exception exception)
clientEvent - Data object comprises the client, event and valueexception - null message has been sent successfully, otherwise
message delivery failed with this errorCopyright © 2016–2020. All rights reserved.