Package org.burningwave.core.concurrent
Class QueuedTaskExecutor.TaskAbst<E,T extends QueuedTaskExecutor.TaskAbst<E,T>>
java.lang.Object
org.burningwave.core.concurrent.QueuedTaskExecutor.TaskAbst<E,T>
- Direct Known Subclasses:
QueuedTaskExecutor.ProducerTask,QueuedTaskExecutor.Task
- Enclosing class:
QueuedTaskExecutor
public abstract static class QueuedTaskExecutor.TaskAbst<E,T extends QueuedTaskExecutor.TaskAbst<E,T>>
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabort()abortOrWaitForFinish(boolean ignoreDeadLocked, boolean ignoreSubmittedCheck) booleanchangePriority(int priority) intbooleaninterrupt(boolean terminateChildren) booleanbooleanbooleanbooleanbooleanbooleanisTerminatedThreadNotAlive(long waitingTime) kill()Deprecated.kill(boolean terminateChildren) Deprecated.voidvoidlogInfo()runOnlyOnce(String id, Supplier<Boolean> hasBeenExecutedChecker) setExceptionHandler(ThrowingBiPredicate<T, Throwable, Throwable> exceptionHandler) booleanfinal Tsubmit()waitForFinish(boolean ignoreDeadLocked, boolean ignoreSubmittedCheck) waitForFinish(boolean ignoreDeadLocked, boolean ignoreSubmittedCheck, long timeout) waitForFinish(long timeout) waitForStarting(boolean ignoreDeadLocked, boolean ignoreSubmittedCheck) waitForStarting(boolean ignoreDeadLocked, boolean ignoreSubmittedCheck, long timeout) waitForStarting(long timeout) waitForTerminatedThreadNotAlive(long pingTime) waitForTerminatedThreadNotAlive(long pingTime, long tentative) waitForTerminatedThreadNotAlive(long pingTime, long tentative, ThrowingConsumer<Integer, EXC> consumer) waitForTerminatedThreadNotAlive(long pingTime, ThrowingConsumer<Integer, EXC> consumer) booleanboolean
-
Constructor Details
-
TaskAbst
-
-
Method Details
-
getCreatorInfos
-
getStartTime
-
setName
-
setExceptionHandler
-
isStarted
public boolean isStarted() -
hasFinished
public boolean hasFinished() -
runOnlyOnce
-
isAborted
public boolean isAborted() -
isTerminatedThreadNotAlive
public boolean isTerminatedThreadNotAlive() -
isTerminatedThreadNotAlive
public boolean isTerminatedThreadNotAlive(long waitingTime) -
waitForTerminatedThreadNotAlive
-
waitForTerminatedThreadNotAlive
-
waitForTerminatedThreadNotAlive
public <EXC extends Throwable> T waitForTerminatedThreadNotAlive(long pingTime, ThrowingConsumer<Integer, EXC> consumer) -
waitForTerminatedThreadNotAlive
public <EXC extends Throwable> T waitForTerminatedThreadNotAlive(long pingTime, long tentative, ThrowingConsumer<Integer, EXC> consumer) -
wasExecuted
public boolean wasExecuted() -
wasExecutedWithException
public boolean wasExecutedWithException() -
isSubmitted
public boolean isSubmitted() -
isProbablyDeadLocked
public boolean isProbablyDeadLocked() -
waitForStarting
-
waitForStarting
-
waitForStarting
-
waitForStarting
-
waitForFinish
-
waitForFinish
-
waitForFinish
-
waitForFinish
-
getInfoAsString
-
logInfo
public void logInfo() -
logException
public void logException() -
changePriority
public boolean changePriority(int priority) -
setPriorityToCurrentThreadPriority
public boolean setPriorityToCurrentThreadPriority() -
getPriority
public int getPriority() -
getException
-
submit
-
abortOrWaitForFinish
-
abortOrWaitForFinish
-
abort
-
kill
Deprecated. -
interrupt
-
kill
Deprecated. -
interrupt
-