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.
|
Map<String,T> |
getRegisteredProcessorAdapterMap()
Returns registered processor adapter map.
|
boolean |
hasProcessor(String name)
Returns
true if a processor named name is registered. |
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, getLabel, getName, setDescription, setLabel, setNamecreateWorkerMap<String,T> getRegisteredProcessorAdapterMap()
void addProcessor(T processorAdapter)
processorAdapter - the processor adapter.void removeProcessor(String name)
name - processor name.void removeAllProcessors()
boolean hasProcessor(String name)
true if a processor named name is registered.name - processor name.true if a processor named name is registered.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–2020 Softelnet. All rights reserved.