Package org.jppf.client.taskwrapper
Class RunnableTaskWrapper
java.lang.Object
org.jppf.client.taskwrapper.AbstractTaskObjectWrapper
org.jppf.client.taskwrapper.RunnableTaskWrapper
- All Implemented Interfaces:
Serializable,TaskObjectWrapper
Task wrapper for classes implementing
Runnable.- Author:
- Laurent Cohen
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jppf.client.taskwrapper.TaskObjectWrapper
TaskObjectWrapper.MethodType -
Field Summary
Fields inherited from class org.jppf.client.taskwrapper.AbstractTaskObjectWrapper
methodType -
Constructor Summary
ConstructorsConstructorDescriptionRunnableTaskWrapper(Runnable taskObject) Initialize this wrapper with the specifiedRunnableobject. -
Method Summary
Modifier and TypeMethodDescriptionexecute()Execute therun()method of this runnable task.Return the object on which a method or constructor is called.Methods inherited from class org.jppf.client.taskwrapper.AbstractTaskObjectWrapper
getMethodType
-
Constructor Details
-
RunnableTaskWrapper
Initialize this wrapper with the specifiedRunnableobject.- Parameters:
taskObject- the runnable object to execute.
-
-
Method Details
-
execute
Execute therun()method of this runnable task.- Returns:
- the result of the execution.
- Throws:
Exception- if an error occurs during the execution.- See Also:
-
getTaskObject
Return the object on which a method or constructor is called.- Returns:
- an object or null if the invoked method is static.
- See Also:
-