Interface SseEventBusConfigurer


public interface SseEventBusConfigurer
Defines methods for configuring the SSE Event Bus library.

Used together with EnableSseEventBus

  • Method Details

    • schedulerDelay

      default Duration schedulerDelay()
      Specifies the delay between runs of the internal error queue job.
      This job tries to re-submits failed sent events.

      Default: 500 milliseconds

    • clientExpirationJobDelay

      default Duration clientExpirationJobDelay()
      Specifies the delay between runs of the internal job that checks for expired clients.

      Default: clientExpiration() (1 day)

    • clientExpiration

      default Duration clientExpiration()
      Duration after the last successful data connection, a client is removed from the internal registry.

      Default: 1 day

    • noOfSendResponseTries

      default int noOfSendResponseTries()
      Number of tries to send an event. When the event cannot be send that many times it will be removed from the internal registry.
    • taskScheduler

      default ScheduledExecutorService taskScheduler()
      An executor that schedules and runs the internal jobs

      By default this is an instance created with {@link Executors#newScheduledThreadPool(2)}

    • errorQueue

      default BlockingQueue<ClientEvent> errorQueue()
    • sendQueue

      default BlockingQueue<ClientEvent> sendQueue()
    • listener

      default SseEventBusListener listener()