Class SinksEventDispatcher.Builder

    • Constructor Detail

      • Builder

        protected Builder()
    • Method Detail

      • emissionStrategy

        public SinksEventDispatcher.Builder emissionStrategy​(EmissionStrategy emissionStrategy)
        Set the EmissionStrategy to apply when event publishing fails, which can be useful to handle overflowing, non-serialized or terminal scenarios through the means of retrying, parking threads or throwing an exception back to the emitter. Defaults to a timeout-then-drop strategy after 10 seconds.
        Parameters:
        emissionStrategy - the emission failure handling strategy
        Returns:
        this builder
      • eventScheduler

        public SinksEventDispatcher.Builder eventScheduler​(Scheduler eventScheduler)
        Set the Scheduler this dispatcher should use to publish events to its subscribers. Using a bounded elastic/blocking-capable one is recommended for general workloads that may have blocking sequences.
        Parameters:
        eventScheduler - a custom Scheduler to publish events
        Returns:
        this builder