Class CallableTask<T>

java.lang.Object
ee.jakarta.tck.concurrent.common.tasks.RunnableTask
ee.jakarta.tck.concurrent.common.tasks.CallableTask<T>
All Implemented Interfaces:
Runnable, Callable<T>

public class CallableTask<T> extends RunnableTask implements Callable<T>
the Runnable Task to check the context related job.
  • 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 jndiName
      className - 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

      public CallableTask(String jndiName, String jndiValue, String className, T returned)
      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 jndiName
      className - class name to be loaded inside the task, ignore class loading test if it is null.
      returned - expected returned object.
  • Method Details

    • call

      public T call()
      Specified by:
      call in interface Callable<T>