public class TaskExecutor
extends java.lang.Object
Title: Framework Support Library
Description: Defines an executor which performs an execution of the specified task.
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
Constructor and Description |
---|
TaskExecutor() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
execute(ExecutedTask task,
java.lang.Object parameter,
long timeout)
Executes the specified task with the specified parameter.
|
public java.lang.Object execute(ExecutedTask task, java.lang.Object parameter, long timeout) throws java.lang.Throwable
task
- the task to be executed.parameter
- the parameters of the specified task.timeout
- the waiting time (in milliseconds) of a completion of the task execution.java.lang.Exception
- if the task execution was cancelled or interrupted or
if any problem has appeared during the task execution (this exception is thrown by the specified task).java.util.concurrent.TimeoutException
- if the specified timeout has expired.java.lang.Throwable
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.