Package com.biglybt.pifimpl.local.utils
Class UtilitiesImpl.DelayedTaskImpl
- java.lang.Object
-
- com.biglybt.pifimpl.local.utils.UtilitiesImpl.DelayedTaskImpl
-
- All Implemented Interfaces:
DelayedTask
- Enclosing class:
- UtilitiesImpl
static class UtilitiesImpl.DelayedTaskImpl extends java.lang.Object implements DelayedTask
-
-
Field Summary
Fields Modifier and Type Field Description private long
create_time
private java.lang.String
name
private long
run_time
private java.lang.Runnable
target
-
Constructor Summary
Constructors Modifier Constructor Description private
DelayedTaskImpl(java.lang.String _name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getName()
void
queue()
Queue the task for execution.void
queueFirst()
protected void
run()
void
setTask(java.lang.Runnable _target)
-
-
-
Method Detail
-
setTask
public void setTask(java.lang.Runnable _target)
-
queue
public void queue()
Description copied from interface:DelayedTask
Queue the task for execution. The task MUST have been set prior to this. If successful this will result in the runnable target being invoked when all prior delayed tasks have completed- Specified by:
queue
in interfaceDelayedTask
-
queueFirst
public void queueFirst()
- Specified by:
queueFirst
in interfaceDelayedTask
-
run
protected void run()
-
getName
protected java.lang.String getName()
-
-