-
- All Implemented Interfaces:
-
jetbrains.exodus.core.execution.JobProcessor
public abstract class MultiThreadDelegatingJobProcessor extends JobProcessorAdapter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classMultiThreadDelegatingJobProcessor.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Array<Job>currentJobsprivate final BooleanisDispatcherThreadprivate final IntegerthreadCountprivate final AtomicBooleanstartedprivate final AtomicBooleanfinishedprivate final JobProcessorExceptionHandlerexceptionHandlerprivate final Array<JobHandler>jobStartingHandlersprivate final Array<JobHandler>jobFinishedHandlers
-
Method Summary
Modifier and Type Method Description final Array<Job>getCurrentJobs()final BooleangetIsDispatcherThread()final IntegergetThreadCount()final <ERROR CLASS>forEachSubProcessor(Function1<ThreadJobProcessor, Unit> action)UnitsetExceptionHandler(JobProcessorExceptionHandler handler)<ERROR CLASS>waitForJobs(Long spinTimeout)<ERROR CLASS>waitForTimedJobs(Long spinTimeout)<ERROR CLASS>suspend()<ERROR CLASS>resume()JobgetCurrentJob()LonggetCurrentJobStartedAt()Iterable<Job>getPendingJobs()IntegerpendingTimedJobs()Unitstart()Unitfinish()IntegerpendingJobs()-
Methods inherited from class jetbrains.exodus.core.execution.MultiThreadDelegatingJobProcessor
afterProcessingJob, beforeProcessingJob, executeJob, getExceptionHandler, handleThrowable, isFinished, isSuspended, processorFinished, processorStarted, queue, queue, queueAt, queueIn, waitForLatchJob, waitForLatchJob -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getCurrentJobs
final Array<Job> getCurrentJobs()
-
getIsDispatcherThread
final Boolean getIsDispatcherThread()
-
getThreadCount
final Integer getThreadCount()
-
forEachSubProcessor
final <ERROR CLASS> forEachSubProcessor(Function1<ThreadJobProcessor, Unit> action)
-
setExceptionHandler
Unit setExceptionHandler(JobProcessorExceptionHandler handler)
-
waitForJobs
<ERROR CLASS> waitForJobs(Long spinTimeout)
-
waitForTimedJobs
<ERROR CLASS> waitForTimedJobs(Long spinTimeout)
-
suspend
<ERROR CLASS> suspend()
-
resume
<ERROR CLASS> resume()
-
getCurrentJob
Job getCurrentJob()
-
getCurrentJobStartedAt
Long getCurrentJobStartedAt()
-
getPendingJobs
Iterable<Job> getPendingJobs()
-
pendingTimedJobs
Integer pendingTimedJobs()
-
pendingJobs
Integer pendingJobs()
-
-
-
-