Class RegistrableThread

java.lang.Object
java.lang.Thread
de.hybris.platform.core.threadregistry.RegistrableThread
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
AbstractPushController, CatalogVersionSyncWorkerThread, ClusterNodePingUpdater, DefaultCheckoutFlowFacadeTest.CMSSiteAwareTestExecutor, PoolableThread, StaleCronJobUnlocker, SuspendResumeLoggerThread, VMBlockTimeRecorder, WorkerValueQueueTest.Master

public class RegistrableThread extends Thread
  • Constructor Details

    • RegistrableThread

      public RegistrableThread()
    • RegistrableThread

      public RegistrableThread(Runnable target)
    • RegistrableThread

      public RegistrableThread(ThreadGroup group, Runnable target)
    • RegistrableThread

      public RegistrableThread(String name)
    • RegistrableThread

      public RegistrableThread(ThreadGroup group, String name)
    • RegistrableThread

      public RegistrableThread(Runnable target, String name)
    • RegistrableThread

      public RegistrableThread(ThreadGroup group, Runnable target, String name)
    • RegistrableThread

      public RegistrableThread(ThreadGroup group, Runnable target, String name, long stackSize)
  • Method Details

    • withInitialInfo

      public RegistrableThread withInitialInfo(OperationInfo initialInfo)
    • registerThread

      public static void registerThread(@Nonnull OperationInfo operationInfo)
      Registers current Thread with a given OperationInfo.
      Parameters:
      operationInfo - info to register for current thread
      Throws:
      NullPointerException - if operationInfo is null
      IllegalStateException - if thread is registered
    • unregisterThread

      public static void unregisterThread()
      Unregisters current Thread.
      Throws:
      IllegalStateException - if thread is not registered
    • run

      public final void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • internalRun

      protected void internalRun()