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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionRegistrableThread(Runnable target) RegistrableThread(Runnable target, String name) RegistrableThread(String name) RegistrableThread(ThreadGroup group, Runnable target) RegistrableThread(ThreadGroup group, Runnable target, String name) RegistrableThread(ThreadGroup group, Runnable target, String name, long stackSize) RegistrableThread(ThreadGroup group, String name) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidstatic voidregisterThread(OperationInfo operationInfo) Registers currentThreadwith a givenOperationInfo.final voidrun()static voidUnregisters currentThread.withInitialInfo(OperationInfo initialInfo) Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Constructor Details
-
RegistrableThread
public RegistrableThread() -
RegistrableThread
-
RegistrableThread
-
RegistrableThread
-
RegistrableThread
-
RegistrableThread
-
RegistrableThread
-
RegistrableThread
-
-
Method Details
-
withInitialInfo
-
registerThread
Registers currentThreadwith a givenOperationInfo.- Parameters:
operationInfo- info to register for current thread- Throws:
NullPointerException- if operationInfo is nullIllegalStateException- if thread is registered
-
unregisterThread
public static void unregisterThread()Unregisters currentThread.- Throws:
IllegalStateException- if thread is not registered
-
run
public final void run() -
internalRun
protected void internalRun()
-