public interface SseEventBusConfigurer
Defines methods for configuring the SSE Event Bus library.
Used together with EnableSseEventBus
-
Method Summary
Modifier and TypeMethodDescriptiondefault DurationDuration after the last successful data connection, a client is removed from the internal registry.default DurationSpecifies the delay between runs of the internal job that checks for expired clients.default BlockingQueue<ClientEvent>default SseEventBusListenerlistener()default intNumber of tries to send an event.default DurationSpecifies the delay between runs of the internal error queue job.default BlockingQueue<ClientEvent>default ScheduledExecutorServiceAn executor that schedules and runs the internal jobs
-
Method Details
-
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
Specifies the delay between runs of the internal job that checks for expired clients.
Default:
clientExpiration()(1 day) -
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
An executor that schedules and runs the internal jobsBy default this is an instance created with {@link Executors#newScheduledThreadPool(2)}
-
errorQueue
-
sendQueue
-
listener
-