@InterfaceAudience.Private public class NamedQueueServiceChore extends ScheduledChore
Modifier and Type | Field and Description |
---|---|
private Connection |
connection |
private static org.slf4j.Logger |
LOG |
static int |
NAMED_QUEUE_CHORE_DURATION_DEFAULT |
static String |
NAMED_QUEUE_CHORE_DURATION_KEY |
private NamedQueueRecorder |
namedQueueRecorder |
Constructor and Description |
---|
NamedQueueServiceChore(Stoppable stopper,
int period,
NamedQueueRecorder namedQueueRecorder,
Connection connection)
Chore Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
chore()
The task to execute on each scheduled execution of the Chore
|
cancel, cancel, choreForTesting, cleanup, getInitialDelay, getName, getPeriod, getStopper, getTimeUnit, initialChore, isInitialChoreComplete, isScheduled, run, shutdown, shutdown, toString, triggerNow
private static final org.slf4j.Logger LOG
public static final String NAMED_QUEUE_CHORE_DURATION_KEY
public static final int NAMED_QUEUE_CHORE_DURATION_DEFAULT
private final NamedQueueRecorder namedQueueRecorder
private final Connection connection
public NamedQueueServiceChore(Stoppable stopper, int period, NamedQueueRecorder namedQueueRecorder, Connection connection)
stopper
- The stopper - When Stoppable.isStopped()
is true, this chore
will cancel and cleanupperiod
- Period in millis with which this Chore repeats execution when
schedulednamedQueueRecorder
- NamedQueueRecorder
instanceprotected void chore()
ScheduledChore
chore
in class ScheduledChore
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.