Class CallableTask<T>
java.lang.Object
ee.jakarta.tck.concurrent.common.tasks.RunnableTask
ee.jakarta.tck.concurrent.common.tasks.CallableTask<T>
the Runnable Task to check the context related job.
-
Constructor Summary
ConstructorsConstructorDescriptionCallableTask
(String jndiName, String jndiValue, String className, T returned) Construct the callable task with expected properties.CallableTask
(String jndiName, String jndiValue, String className, T returned, long blockTime) Construct the callable task with expected properties. -
Method Summary
Methods inherited from class ee.jakarta.tck.concurrent.common.tasks.RunnableTask
getCount, loadClass, lookupEnvRef, run
-
Constructor Details
-
CallableTask
public CallableTask(String jndiName, String jndiValue, String className, T returned, long blockTime) Construct the callable task with expected properties.- Parameters:
jndiName
- the jndi name set for env-entry, ignore jndi test if it is null.jndiValue
- the jndi value set for jndiNameclassName
- class name to be loaded inside the task, ignore class loading test if it is null.returned
- expected returned object.blockTime
- block time(in millisecond) for this task.
-
CallableTask
Construct the callable task with expected properties.- Parameters:
jndiName
- the jndi name set for env-entry, ignore jndi test if it is null.jndiValue
- the jndi value set for jndiNameclassName
- class name to be loaded inside the task, ignore class loading test if it is null.returned
- expected returned object.
-
-
Method Details