Class BaseFlux<T>

    • Field Detail

      • flux

        protected final reactor.core.publisher.Flux<Set<T>> flux
        Flux.
      • fluxSink

        protected reactor.core.publisher.FluxSink<Set<T>> fluxSink
        Flux sink.
    • Constructor Detail

      • BaseFlux

        public BaseFlux()
        Constructor.
    • Method Detail

      • getOverflowStrategy

        protected reactor.core.publisher.FluxSink.OverflowStrategy getOverflowStrategy()
        Set the default overflow strategy - override to change it.
        Returns:
        overflow strategy
      • getFlux

        public reactor.core.publisher.Flux<Set<T>> getFlux()
        Getter for flux.
        Returns:
        flux
      • emitValue

        public void emitValue​(T newValue)
        Emit new value.
        Parameters:
        newValue - new value
      • emitValues

        public void emitValues​(Set<T> newValues)
        Emit new values.
        Parameters:
        newValues - new values
      • update

        public final void update()
        Method executed when values have to be retrieved (usually called by schedulers).
      • getNewValues

        protected abstract Set<T> getNewValues()
        Implements this method to return all the new values. Those values will be sent to the strategy.
        Returns:
        list of new values
      • saveValues

        protected abstract Set<T> saveValues​(Set<T> newValue)
        Implements this method to save values coming from flux.
        Parameters:
        newValue - new value
        Returns:
        the value saved