public class HangMonitor
extends com.google.common.util.concurrent.AbstractScheduledService
Modifier and Type | Class and Description |
---|---|
static class |
HangMonitor.AutoStartInstance |
Constructor and Description |
---|
HangMonitor(java.util.function.Consumer<String> hangReportConsumer,
java.time.Duration hangCheckTimeout) |
Modifier and Type | Method and Description |
---|---|
void |
onWorkAdvance(WorkAdvanceEvent event) |
protected void |
runOneIteration() |
protected com.google.common.util.concurrent.AbstractScheduledService.Scheduler |
scheduler() |
public HangMonitor(java.util.function.Consumer<String> hangReportConsumer, java.time.Duration hangCheckTimeout)
public void onWorkAdvance(WorkAdvanceEvent event)
protected void runOneIteration()
runOneIteration
in class com.google.common.util.concurrent.AbstractScheduledService
protected com.google.common.util.concurrent.AbstractScheduledService.Scheduler scheduler()
scheduler
in class com.google.common.util.concurrent.AbstractScheduledService