public class ArchiveStatusCleanupTask extends LeaderTask
Constructor and Description |
---|
ArchiveStatusCleanupTask(DataServices dataServices,
AgentRoutingService agentRoutingService,
ArchiveStatusCleanupProperties properties,
io.micrometer.core.instrument.MeterRegistry registry)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
getFixedRate()
Get how long the system should wait between invoking the run() method of this task in milliseconds.
|
GenieTaskScheduleType |
getScheduleType()
Get the type of scheduling mechanism which should be used to schedule this task.
|
void |
run() |
cleanup
getFixedDelay, getTrigger
public ArchiveStatusCleanupTask(DataServices dataServices, AgentRoutingService agentRoutingService, ArchiveStatusCleanupProperties properties, io.micrometer.core.instrument.MeterRegistry registry)
dataServices
- data servicesagentRoutingService
- agent routing serviceproperties
- task propertiesregistry
- metrics registrypublic void run()
public GenieTaskScheduleType getScheduleType()
getScheduleType
in class GenieTask
public long getFixedRate()
getFixedRate
in class GenieTask