Package com.linecorp.armeria.spring
Interface MetricCollectingServiceConfigurator
- All Superinterfaces:
org.springframework.core.Ordered
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface MetricCollectingServiceConfigurator
extends org.springframework.core.Ordered
Interface used to configure a
MetricCollectingService
on the default Armeria server.-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(MetricCollectingServiceBuilder metricCollectingServiceBuilder) Configures theMetricCollectingService
using the specifiedMetricCollectingServiceBuilder
.default int
getOrder()
Returns the evaluation order of this configurator.
-
Method Details
-
configure
Configures theMetricCollectingService
using the specifiedMetricCollectingServiceBuilder
. -
getOrder
default int getOrder()Returns the evaluation order of this configurator. A user can specify the order with anOrder
annotation when defining a bean with aBean
annotation.Note that the default value of the
Order
annotation isOrdered.LOWEST_PRECEDENCE
which equals toInteger.MAX_VALUE
, but it is overridden to0
by this default method.- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
- See Also:
-
Ordered.LOWEST_PRECEDENCE
Ordered.HIGHEST_PRECEDENCE
AnnotationAwareOrderComparator
-