Package me.legrange.services.monitor
Interface WithMonitor
-
- All Superinterfaces:
WithComponent
- All Known Implementing Classes:
MonitoredComponent
public interface WithMonitor extends WithComponent
- Author:
- gideon
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidmonitor(String name, Supplier<State> function)-
Methods inherited from interface me.legrange.service.WithComponent
getComponent
-
-
-
-
Method Detail
-
monitor
default void monitor(String name, Supplier<State> function) throws ComponentException
- Throws:
ComponentException
-
-