Package org.burningwave.core.concurrent
Class QueuedTasksExecutor.TaskAbst<E,T extends QueuedTasksExecutor.TaskAbst<E,T>>
java.lang.Object
org.burningwave.core.concurrent.QueuedTasksExecutor.TaskAbst<E,T>
- All Implemented Interfaces:
ManagedLogger
- Direct Known Subclasses:
QueuedTasksExecutor.ProducerTask,QueuedTasksExecutor.Task
- Enclosing class:
- QueuedTasksExecutor
public abstract static class QueuedTasksExecutor.TaskAbst<E,T extends QueuedTasksExecutor.TaskAbst<E,T>> extends Object implements ManagedLogger
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.burningwave.core.ManagedLogger
ManagedLogger.Repository -
Constructor Summary
-
Method Summary
Modifier and Type Method Description Tabort()TabortOrWaitForFinish()TabortOrWaitForFinish(boolean ignoreDeadLocked)TchangePriority(int priority)List<StackTraceElement>getCreatorInfos()ThrowablegetException()intgetPriority()LonggetStartTime()booleanhasFinished()booleanisAborted()booleanisProbablyDeadLocked()booleanisStarted()booleanisSubmitted()TrunOnlyOnce(String id, Supplier<Boolean> hasBeenExecutedChecker)TsetExceptionHandler(ThrowingBiConsumer<T,Throwable,Throwable> exceptionHandler)TsetName(String name)TsetPriorityToCurrentThreadPriority()Tsubmit()TwaitForFinish()TwaitForFinish(boolean ignoreDeadLocked)TwaitForStarting()booleanwaitForStarting0(boolean ignoreDeadLocked)
-
Constructor Details
-
TaskAbst
-
-
Method Details
-
getCreatorInfos
-
getStartTime
-
setName
-
setExceptionHandler
-
isStarted
public boolean isStarted() -
hasFinished
public boolean hasFinished() -
runOnlyOnce
-
isAborted
public boolean isAborted() -
isSubmitted
public boolean isSubmitted() -
isProbablyDeadLocked
public boolean isProbablyDeadLocked() -
waitForStarting
-
waitForStarting0
public boolean waitForStarting0(boolean ignoreDeadLocked) -
waitForFinish
-
waitForFinish
-
changePriority
-
setPriorityToCurrentThreadPriority
-
getPriority
public int getPriority() -
getException
-
submit
-
abortOrWaitForFinish
-
abortOrWaitForFinish
-
abort
-