java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.MessageHistory.WriteJob
- All Implemented Interfaces:
Job
- Enclosing class:
MessageHistory
Job writing the queued entries to the file.
Field Summary
Constructor Summary
ConstructorsMethod Summary
All MethodsMethods inherited from class JobImpl
dropped, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toStringModifier and TypeMethodDescriptionvoiddropped()Default implementation does nothing.final RouterContextThe router context that this job belongs to.longgetJobId()The unique job ID for this job.longThe timestamp when this job was last made ready for execution.The timing object for this job.voidmadeReady(long now) For JobQueue only, not for external use.protected voidrequeue(long delayMs) Requeue this job to run after the specified delay.toString()
Constructor Details
WriteJob
public WriteJob()The write job that flushes the pending message history.
Method Details
getName
The name of this job.- Returns:
- the job name shown in job queue listings and logs, suffixed with "(disabled)" while message history logging is turned off
runJob
public void runJob()Flush pending entries, refresh settings, and reschedule.