Class ReactiveInfoAggregator
- java.lang.Object
-
- io.micronaut.management.endpoint.info.impl.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
-
-
Constructor Summary
Constructors Constructor Description ReactiveInfoAggregator()
-
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 ofInfoSourceand return a publisher.protected reactor.core.publisher.Flux<java.util.Map.Entry<java.lang.Integer,io.micronaut.context.env.PropertySource>>aggregateResults(InfoSource[] sources)
-
-
-
Method Detail
-
aggregate
public org.reactivestreams.Publisher<java.util.Map<java.lang.String,java.lang.Object>> aggregate(InfoSource[] sources)
Description copied from interface:InfoAggregatorAggregate an array ofInfoSourceand return a publisher.- Specified by:
aggregatein interfaceInfoAggregator<java.util.Map<java.lang.String,java.lang.Object>>- Parameters:
sources- an array of InfoSources- Returns:
- A
PublisherofT
-
aggregateResults
protected reactor.core.publisher.Flux<java.util.Map.Entry<java.lang.Integer,io.micronaut.context.env.PropertySource>> aggregateResults(InfoSource[] sources)
- Parameters:
sources- Array ofInfoSource- Returns:
- An
FluxofMap.Entry, where the key is anIntegerand value is thePropertySourcereturned by theInfoSource
-
-