Interface SseEventBusListener


public interface SseEventBusListener
Listen for internal events. All these methods are called synchronously.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    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
  • Method Details

    • afterEventQueued

      default void afterEventQueued(ClientEvent clientEvent, boolean firstAttempt)
      Called each time a message has been added to the internal sending queue
      Parameters:
      clientEvent - Data object comprises the client, event and value
      firstAttempt - true if the message is queued the first time or false if this is a new attempt after a previous failed delivery
    • afterEventSent

      default void afterEventSent(ClientEvent clientEvent, Exception exception)
      Called each time a message has been sent either successfully or unsuccessfully
      Parameters:
      clientEvent - Data object comprises the client, event and value
      exception - null message has been sent successfully, otherwise message delivery failed with this error
    • afterClientsUnregistered

      default void afterClientsUnregistered(Set<String> clientIds)
      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