Class ReactiveInfoAggregator

  • All Implemented Interfaces:
    InfoAggregator<java.util.Map<java.lang.String,​java.lang.Object>>

    @Singleton
    @Requires(beans=InfoEndpoint.class)
    public class ReactiveInfoAggregator
    extends java.lang.Object
    implements InfoAggregator<java.util.Map<java.lang.String,​java.lang.Object>>

    Default implementation of InfoAggregator.

    Since:
    1.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.reactivestreams.Publisher<java.util.Map<java.lang.String,​java.lang.Object>> aggregate​(InfoSource[] sources)
      Aggregate an array of InfoSource and return a publisher.
      protected reactor.core.publisher.Flux<java.util.Map.Entry<java.lang.Integer,​io.micronaut.context.env.PropertySource>> aggregateResults​(InfoSource[] sources)
      Create a Flux of ordered PropertySource from an array of InfoSource.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReactiveInfoAggregator

        public ReactiveInfoAggregator()
    • Method Detail

      • aggregate

        public org.reactivestreams.Publisher<java.util.Map<java.lang.String,​java.lang.Object>> aggregate​(InfoSource[] sources)
        Description copied from interface: InfoAggregator
        Aggregate an array of InfoSource and return a publisher.
        Specified by:
        aggregate in interface InfoAggregator<java.util.Map<java.lang.String,​java.lang.Object>>
        Parameters:
        sources - an array of InfoSources
        Returns:
        A Publisher of T
      • aggregateResults

        protected reactor.core.publisher.Flux<java.util.Map.Entry<java.lang.Integer,​io.micronaut.context.env.PropertySource>> aggregateResults​(InfoSource[] sources)
        Create a Flux of ordered PropertySource from an array of InfoSource.
        Parameters:
        sources - Array of InfoSource
        Returns:
        An Flux of Map.Entry, where the key is an Integer and value is the PropertySource returned by the InfoSource