net.sourceforge.acelogger.execution.task
Class NotifiableTask

java.lang.Object
  extended by net.sourceforge.acelogger.execution.task.NotifiableTask
All Implemented Interfaces:
Runnable

public class NotifiableTask
extends Object
implements Runnable

A Runnable implementation and wrapper that supports a call back for the execution of a task.

Since:
1.0.0
Version:
1.0.0
Author:
Zardi (https://sourceforge.net/users/daniel_zardi)

Constructor Summary
NotifiableTask(Runnable task, Runnable callback)
          Constructs a new NotifiableTask with the given task and call back.
 
Method Summary
 void run()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotifiableTask

public NotifiableTask(Runnable task,
                      Runnable callback)
Constructs a new NotifiableTask with the given task and call back.

Parameters:
task - The task to be monitored.
callback - The call back to be invoked after the task completion.
Since:
1.0.0
Method Detail

run

public void run()

Specified by:
run in interface Runnable


Copyright © 2007-2010 The AceLogger Team. All Rights Reserved.