Interface EventExecutorChooserFactory.ObservableEventExecutorChooser
- All Superinterfaces:
EventExecutorChooserFactory.EventExecutorChooser
- Enclosing interface:
EventExecutorChooserFactory
public static interface EventExecutorChooserFactory.ObservableEventExecutorChooser
extends EventExecutorChooserFactory.EventExecutorChooser
An
EventExecutorChooserFactory.EventExecutorChooser that exposes metrics for observation.-
Method Summary
Modifier and TypeMethodDescriptionintReturns the current number of activeEventExecutors.Returns a list containing the last calculated utilization for eachEventExecutorin the group.Methods inherited from interface EventExecutorChooserFactory.EventExecutorChooser
next
-
Method Details
-
activeExecutorCount
int activeExecutorCount()Returns the current number of activeEventExecutors.- Returns:
- the number of active executors.
-
executorUtilizations
List<AutoScalingEventExecutorChooserFactory.AutoScalingUtilizationMetric> executorUtilizations()Returns a list containing the last calculated utilization for eachEventExecutorin the group.- Returns:
- an umodifiable view of the executor utilizations.
-