intarsys runtime library

de.intarsys.tools.concurrent
Class TaskCallbackDispatcher

java.lang.Object
  extended by de.intarsys.tools.concurrent.TaskCallbackDispatcher
All Implemented Interfaces:
ITaskListener, ITaskListenerSupport

public class TaskCallbackDispatcher
extends Object
implements ITaskListenerSupport, ITaskListener

Helper object for implementing ITaskListenerSupport.


Constructor Summary
TaskCallbackDispatcher(Object pOwner)
           
 
Method Summary
 void addTaskListener(ITaskListener listener)
           
 void attach(ITaskListenerSupport support)
           
 void clear()
           
 void detach(ITaskListenerSupport support)
           
 Object getOwner()
           
 boolean isEmpty()
           
 void removeTaskListener(ITaskListener listener)
           
 void taskCancelled(Object task)
           
 void taskFailed(Object task, ExecutionException exception)
           
 void taskFinished(Object task, Object result)
           
 void taskStarted(Object task)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskCallbackDispatcher

public TaskCallbackDispatcher(Object pOwner)
Method Detail

addTaskListener

public void addTaskListener(ITaskListener listener)
Specified by:
addTaskListener in interface ITaskListenerSupport

attach

public void attach(ITaskListenerSupport support)

clear

public void clear()

detach

public void detach(ITaskListenerSupport support)

getOwner

public Object getOwner()

isEmpty

public boolean isEmpty()

removeTaskListener

public void removeTaskListener(ITaskListener listener)
Specified by:
removeTaskListener in interface ITaskListenerSupport

taskCancelled

public void taskCancelled(Object task)
Specified by:
taskCancelled in interface ITaskListener

taskFailed

public void taskFailed(Object task,
                       ExecutionException exception)
Specified by:
taskFailed in interface ITaskListener

taskFinished

public void taskFinished(Object task,
                         Object result)
Specified by:
taskFinished in interface ITaskListener

taskStarted

public void taskStarted(Object task)
Specified by:
taskStarted in interface ITaskListener

intarsys runtime library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.