public class HazelcastManagedThread extends Thread
beforeRun()
,
executeRun()
and
afterRun()
methods.Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
HazelcastManagedThread() |
HazelcastManagedThread(Runnable target) |
HazelcastManagedThread(Runnable target,
String name) |
HazelcastManagedThread(String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterRun()
Called after inner run method and can be overridden to customize.
|
protected void |
beforeRun()
Called before inner run method and can be overridden to customize.
|
protected void |
executeRun()
Does the actual run and can be overridden to customize.
|
void |
run()
Manages the thread lifecycle and can be overridden to customize if needed.
|
void |
setContextClassLoader(ClassLoader cl) |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public HazelcastManagedThread()
public HazelcastManagedThread(Runnable target)
public HazelcastManagedThread(String name)
public void setContextClassLoader(ClassLoader cl)
setContextClassLoader
in class Thread
protected void beforeRun()
protected void executeRun()
protected void afterRun()
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.