public interface ProcessingUnit<T extends EventProcessorAdapter<?>> extends EngineModule, Processable
| Modifier and Type | Method and Description |
|---|---|
void |
addProcessor(T processor)
Adds a new processor to this processing unit.
|
boolean |
existsProcessor(String name)
Returns
true if a processor named name exists. |
Map<String,T> |
getRegisteredProcessorAdapterMap()
Returns registered processor adapter map.
|
void |
removeAllProcessors()
Removes all processors.
|
void |
removeProcessor(String name)
Removes processor specified by its name.
|
boolean |
supportsConcurrentListenerThreadPool()
Returns
true if this processing unit supports thread pool to listen to an event queue concurrently instead of only one
thread. |
getEngine, getName, setEngine, setNameisFailed, isNew, isRunning, isStarting, isStopping, isTerminated, shutdown, startupcreateWorkerMap<String,T> getRegisteredProcessorAdapterMap()
void addProcessor(T processor)
processor - processor.void removeProcessor(String name)
name - processor name.void removeAllProcessors()
boolean existsProcessor(String name)
true if a processor named name exists.name - processor name.true if a processor named name exists.boolean supportsConcurrentListenerThreadPool()
true if this processing unit supports thread pool to listen to an event queue concurrently instead of only one
thread.true if this processing unit supports thread pool to listen to an event queue concurrently.Copyright © 2016–2018 Softelnet. All rights reserved.