public final class GenericInterruptibleThread extends InterruptibleBatchThread implements AliveConfirmer
sessionResources
threadController
threadDoneListeners
GROUP_TERMINATION_ALLOWED_WITHOUT_CONFIRMATION, GROUP_TERMINATION_NOT_ALLOWED, GROUP_TERMINATION_REQUIRES_CONFIRMATION
Constructor and Description |
---|
GenericInterruptibleThread(SessionResources sessionResources,
BatchThreadControllerFrame threadControllerFrame)
Construct a new GenericInterruptibleThread.
|
GenericInterruptibleThread(SessionResources sessionResources,
java.lang.String windowTitle) |
Modifier and Type | Method and Description |
---|---|
BatchThreadControllerFrame |
getThreadControllerFrame()
Returns the controller frame of the thread.
|
void |
runCore(DataObjectConstructionDetails docd)
Runs the core of the runnable With opportunity to use e.g. a different DB connection.
|
void |
set(CoreRunnable coreRunnable)
Assigns the runnable.
|
void |
setTitle(java.lang.String title)
Sets the title for this frame to the specified string.
|
void |
start(CoreRunnable coreRunnable)
Assigns the runnable and starts the thread, which will immediately call the Runnable's run() method.
|
void |
start(java.lang.Runnable runnable)
Assigns the runnable and starts the thread, which will immediately call the Runnable's run() method.
|
getSessionResources, isTerminationRequested, isToRun, requiresUserConfirmationToTerminate, runCore, setTerminationRequiresUserConfirmation, start, terminate
free, register, register, run, runPartAfterCore, setStatusInformation, setThreadController
addThreadDoneListener, fireThreadDone, fireThreadDone, getEventMessage, getFinalState, idle, logDebug, logError, logError, logInfo, setEventErrorMessage, setEventMessage, setFinalState
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, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yield
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isToRun
getName
addThreadDoneListener, setThreadController
public GenericInterruptibleThread(SessionResources sessionResources, java.lang.String windowTitle)
public GenericInterruptibleThread(SessionResources sessionResources, BatchThreadControllerFrame threadControllerFrame)
sessionResources
- the session resources to usewindowTitle
- the title of the frame to cancel the threadpublic void start(java.lang.Runnable runnable)
runnable
- the Runnable to performpublic void set(CoreRunnable coreRunnable)
coreRunnable
- the CoreRunnable to performpublic void start(CoreRunnable coreRunnable)
coreRunnable
- the CoreRunnable to performpublic BatchThreadControllerFrame getThreadControllerFrame()
public void runCore(DataObjectConstructionDetails docd) throws java.lang.Exception
CoreRunnable
runCore
in interface CoreRunnable
docd
- the DataObjectConstructionDetails to use - that may differ from session data details.java.lang.Exception
public void setTitle(java.lang.String title)
title
- the title to be displayed in the frame's border.Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de