@InterfaceAudience.Private public class NamedQueueServiceChore extends ScheduledChore
| Modifier and Type | Field and Description |
|---|---|
static int |
NAMED_QUEUE_CHORE_DURATION_DEFAULT |
static String |
NAMED_QUEUE_CHORE_DURATION_KEY |
| Constructor and Description |
|---|
NamedQueueServiceChore(Stoppable stopper,
int period,
NamedQueueRecorder namedQueueRecorder,
Connection connection)
Chore Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
chore() |
cancel, cancel, choreForTesting, cleanup, getInitialDelay, getName, getPeriod, getStopper, getTimeUnit, initialChore, isInitialChoreComplete, isScheduled, run, shutdown, shutdown, toString, triggerNowpublic static final String NAMED_QUEUE_CHORE_DURATION_KEY
public static final int NAMED_QUEUE_CHORE_DURATION_DEFAULT
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()
chore in class ScheduledChoreCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.