Package org.aksw.commons.util.concurrent
Class ScheduleOnce2
java.lang.Object
org.aksw.commons.util.concurrent.ScheduleOnce2
Class to schedule a task after a certain delay and ensure that it only
executes once. If there is a request to schedule the task while it is already
running it will be scheduled for the delay.
- Author:
- raven
-
Field Details
-
executor
-
task
-
lastRequestTime
protected volatile long lastRequestTime -
lastTaskStartTime
-
lock
-
-
Constructor Details
-
ScheduleOnce2
-
-
Method Details
-
scheduleTask
public void scheduleTask()
-