org.databene.task
Class SynchronizedTask
java.lang.Object
org.databene.task.AbstractTask
org.databene.task.TaskProxy
org.databene.task.SynchronizedTask
- All Implemented Interfaces:
- java.io.Closeable, java.lang.Cloneable, org.databene.commons.MessageHolder, org.databene.commons.ThreadAware, Task
public class SynchronizedTask
- extends TaskProxy
TaskProxy
implementation that add thread-safety to an unsafe
Task
by synchronizing the method Task.execute(Context, ErrorHandler)
.
Created: 27.03.2010 16:39:02
- Since:
- 0.6.0
- Author:
- Volker Bergmann
Method Summary |
java.lang.Object |
clone()
|
TaskResult |
execute(org.databene.commons.Context context,
org.databene.commons.ErrorHandler errorHandler)
Executes the task's work, possibly interacting with the context. |
boolean |
isThreadSafe()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SynchronizedTask
public SynchronizedTask(Task realTask)
execute
public TaskResult execute(org.databene.commons.Context context,
org.databene.commons.ErrorHandler errorHandler)
- Description copied from interface:
Task
- Executes the task's work, possibly interacting with the context.
- Specified by:
execute
in interface Task
- Overrides:
execute
in class TaskProxy
isThreadSafe
public boolean isThreadSafe()
- Specified by:
isThreadSafe
in interface org.databene.commons.ThreadAware
- Overrides:
isThreadSafe
in class TaskProxy
clone
public java.lang.Object clone()
- Specified by:
clone
in class TaskProxy
Copyright © 2013. All Rights Reserved.