public class DecomposedQueueMainProcessingUnit extends BaseMainProcessingUnit
| Modifier and Type | Class and Description |
|---|---|
class |
DecomposedQueueMainProcessingUnit.DecomposedQueueReaderProcessable |
protected class |
DecomposedQueueMainProcessingUnit.DecomposedQueueReaderWorker |
protected class |
DecomposedQueueMainProcessingUnit.DecomposedQueueWriterLoopWorker |
BaseProcessingUnit.EventLoopWorker, BaseProcessingUnit.LoopWorker| Modifier and Type | Field and Description |
|---|---|
protected ThreadPool |
asyncEventSetProcessorThreadPool
The thread pool used by the Main Processing Unit for asynchronous processing of event set processors.
|
protected ProcessableThreadPool |
decomposedQueueThreadPool
The thread pool used by the Main Processing Unit for listening to the decomposed queue.
|
protected ProcessableThreadPool |
listenerThreadPool
The thread pool used by the Main Processing Unit for listening to the Main Event Queue.
|
protected ThreadPool |
workerThreadPool
The thread pool used by the Main Processing Unit for worker threads.
|
handlerseventProcessorRegistrationListener, GET_ITERATION_TIMEOUT, lock| Constructor and Description |
|---|
DecomposedQueueMainProcessingUnit(String name,
SpongeEngine engine,
EventQueue inQueue,
EventQueue outQueue)
Creates a new main processing unit.
|
| Modifier and Type | Method and Description |
|---|---|
Runnable |
createWorker()
Creates the worker.
|
void |
doShutdown() |
void |
doStartup()
Starts up this managed entity.
|
ThreadPool |
getAsyncEventSetProcessorThreadPool() |
DecomposedQueue<EventProcessorAdapter<?>> |
getDecomposedQueue() |
ProcessableThreadPool |
getDecomposedQueueThreadPool() |
ThreadPool |
getWorkerThreadPool() |
boolean |
processEvent(Event event)
Processes an event.
|
protected void |
putIntoDecomposedQueue(org.apache.commons.lang3.tuple.Pair<EventProcessorAdapter<?>,Event> entry) |
void |
setDecomposedQueue(DecomposedQueue<EventProcessorAdapter<?>> decomposedQueue) |
boolean |
supportsConcurrentListenerThreadPool() |
protected boolean |
supportsControlEventForProcessor(ProcessorAdapter<?> processorAdapter) |
createHandlers, getCorrelatorAdapterGroups, getHandler, getHandlers, getProcessorAdapterList, getRuleAdapterGroups, getTriggerAdapters, hasProcessor, processorChanged, shutdownHandlers, startupHandlersaddProcessor, clearUnusedEventMapping, getEventProcessorRegistrationListener, getEventProcessors, getInQueue, getOutQueue, getRegisteredProcessorAdapterMap, getThreadPoolManager, hasProcessor, invalidateCache, removeAllProcessors, removeProcessor, resolveEventProcessors, setEventProcessorRegistrationListenergetDescription, getEngine, getInternalService, getLabel, getName, getState, isFailed, isNew, isNewOrStartingOrRunning, isRunning, isStarting, isStopping, isTerminated, setDescription, setEngine, setLabel, setName, shutdown, startup, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddProcessor, getRegisteredProcessorAdapterMap, hasProcessor, removeAllProcessors, removeProcessorisFailed, isNew, isRunning, isStarting, isStopping, isTerminated, shutdown, startupgetDescription, getLabel, getName, setDescription, setLabel, setNameprotected ProcessableThreadPool listenerThreadPool
protected ProcessableThreadPool decomposedQueueThreadPool
protected ThreadPool workerThreadPool
protected ThreadPool asyncEventSetProcessorThreadPool
public DecomposedQueueMainProcessingUnit(String name, SpongeEngine engine, EventQueue inQueue, EventQueue outQueue)
name - name.engine - the engine.inQueue - input queue.outQueue - output queue.public void setDecomposedQueue(DecomposedQueue<EventProcessorAdapter<?>> decomposedQueue)
public void doStartup()
doStartup in class BaseEngineModulepublic void doShutdown()
doShutdown in class BaseEngineModulepublic Runnable createWorker()
protected boolean supportsControlEventForProcessor(ProcessorAdapter<?> processorAdapter)
public boolean processEvent(Event event) throws InterruptedException
event - an event.true if the event hasn't been processed by any adapters and should be put into the Output Queue.InterruptedException - if interrupted.protected void putIntoDecomposedQueue(org.apache.commons.lang3.tuple.Pair<EventProcessorAdapter<?>,Event> entry) throws InterruptedException
InterruptedExceptionpublic boolean supportsConcurrentListenerThreadPool()
public DecomposedQueue<EventProcessorAdapter<?>> getDecomposedQueue()
public ThreadPool getWorkerThreadPool()
public ThreadPool getAsyncEventSetProcessorThreadPool()
public ProcessableThreadPool getDecomposedQueueThreadPool()
Copyright © 2016–2020 Softelnet. All rights reserved.