public interface ProcessingUnit<T extends EventProcessorAdapter<?>> extends EngineModule, Processable
| Modifier and Type | Method and Description |
|---|---|
void |
addProcessor(T processorAdapter)
Adds a new processor adapter 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. |
isFailed, isNew, isRunning, isStarting, isStopping, isTerminated, shutdown, startupgetDescription, getDisplayName, getName, setDescription, setDisplayName, setNamecreateWorkerMap<String,T> getRegisteredProcessorAdapterMap()
void addProcessor(T processorAdapter)
processorAdapter - the processor adapter.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–2019 Softelnet. All rights reserved.