Class BaseWorker<O,T>
- java.lang.Object
-
- com.evolveum.midpoint.ninja.action.worker.BaseWorker<O,T>
-
- Type Parameters:
O- options classT- type of objects in the queue
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
AbstractWriterConsumerWorker,ExportAuditProducerWorker,ExportMiningProducerWorker,ImportAuditConsumerWorker,ImportProducerWorker,ImportRepositoryConsumerWorker,ProgressReporterWorker,SearchProducerWorker,UpgradeObjectsConsumerWorker
public abstract class BaseWorker<O,T> extends Object implements Runnable
Base worker class that either produces or consumesBaseWorkerobject for/from queue.
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSUMER_POLL_TIMEOUTprotected NinjaContextcontextprotected OperationStatusoperationprotected Ooptionsprotected BlockingQueue<T>queue
-
Constructor Summary
Constructors Constructor Description BaseWorker(NinjaContext context, O options, BlockingQueue<T> queue, OperationStatus operation)BaseWorker(NinjaContext context, O options, BlockingQueue<T> queue, OperationStatus operation, List<? extends BaseWorker<?,?>> workers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisDone()protected booleanisWorkersDone()voidmarkDone()protected booleanshouldConsumerStop()
-
-
-
Field Detail
-
CONSUMER_POLL_TIMEOUT
public static final int CONSUMER_POLL_TIMEOUT
- See Also:
- Constant Field Values
-
queue
protected BlockingQueue<T> queue
-
context
protected NinjaContext context
-
options
protected O options
-
operation
protected OperationStatus operation
-
-
Constructor Detail
-
BaseWorker
public BaseWorker(NinjaContext context, O options, BlockingQueue<T> queue, OperationStatus operation)
-
BaseWorker
public BaseWorker(NinjaContext context, O options, BlockingQueue<T> queue, OperationStatus operation, List<? extends BaseWorker<?,?>> workers)
-
-