Class RunnableTask

java.lang.Object
ee.jakarta.tck.concurrent.common.tasks.RunnableTask
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
CallableTask, SecurityServlet.CounterRunnableWithContext

public class RunnableTask extends Object implements Runnable
the Runnable Task to check the context related job. it verifies : 1, load class and 2, look up env-entry set to the deployment descriptor.
  • Constructor Details

    • RunnableTask

      public RunnableTask(String jndiName, String jndiValue, String className, long blockTime)
      Construct the runnable 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.
      blockTime - block time(in millisecond) for this task.
    • RunnableTask

      public RunnableTask(String jndiName, String jndiValue, String className)
      Construct the runnable 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.
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • lookupEnvRef

      protected boolean lookupEnvRef()
    • getCount

      public int getCount()
    • loadClass

      protected boolean loadClass()