public interface SseEventBusListener
Listen for internal events. All these methods are called synchronously.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidafterClientsUnregistered(Set<String> clientIds) Called each time the library has unregistered one or more stale clients.default voidafterEventQueued(ClientEvent clientEvent, boolean firstAttempt) Called each time a message has been added to the internal sending queuedefault voidafterEventSent(ClientEvent clientEvent, Exception exception) Called each time a message has been sent either successfully or unsuccessfully
-
Method Details
-
afterEventQueued
Called each time a message has been added to the internal sending queue- Parameters:
clientEvent- Data object comprises the client, event and valuefirstAttempt-trueif the message is queued the first time orfalseif this is a new attempt after a previous failed delivery
-
afterEventSent
Called each time a message has been sent either successfully or unsuccessfully- Parameters:
clientEvent- Data object comprises the client, event and valueexception-nullmessage has been sent successfully, otherwise message delivery failed with this error
-
afterClientsUnregistered
Called each time the library has unregistered one or more stale clients.- Parameters:
clientIds- collection of client identifications that have been removed from the registry
-