Package com.github.jpmsilva.jsystemd
Class PendingHealthProvider
java.lang.Object
com.github.jpmsilva.jsystemd.PendingHealthProvider
- All Implemented Interfaces:
- HealthProvider
public class PendingHealthProvider extends Object implements HealthProvider
Implementation of 
HealthProvider that suppresses/delays the unhealthy state of a delegate for a configurable period.- Author:
- Christian Lorenz
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.github.jpmsilva.jsystemd.HealthProviderHealthProvider.Health
- 
Constructor SummaryConstructors Constructor Description PendingHealthProvider(@NotNull HealthProvider delegate, long delay, @NotNull TemporalUnit delayUnit)Creates a new health provider that delegates the actual work to thedelegate, and delays reporting unhealthy status.
- 
Method SummaryModifier and Type Method Description HealthProvider.Healthhealth()Determines if an application is healthy.
- 
Constructor Details- 
PendingHealthProviderpublic PendingHealthProvider(@NotNull @NotNull HealthProvider delegate, long delay, @NotNull @NotNull TemporalUnit delayUnit)Creates a new health provider that delegates the actual work to thedelegate, and delays reporting unhealthy status.- Parameters:
- delegate- health provider from which to obtain the true health status of the application, never- null
- delay- time that has to be elapsed before the real unhealthy status is provided
- delayUnit-- TemporalUnitfor- delay, never- null
 
 
- 
- 
Method Details- 
healthDescription copied from interface:HealthProviderDetermines if an application is healthy.- Specified by:
- healthin interface- HealthProvider
- Returns:
- true if application is healthy, otherwise false
 
 
-