public abstract class AbstractExecutorBusProcessorFactory extends Object
ExecutorBusProcessor
.
Implementations must provide a zero argument constructor for the factory to allow it to be instantiated by the executor bus binding.
Each bus of type executor must define the property
to allow a processor to be provided to the executor bus. A factory does not necessarily need to instantiate a new
processor when this is called, it may through some static mechanism return an already existing class that implements
the ExecutorBusProcessor
.
Constructor and Description |
---|
AbstractExecutorBusProcessorFactory()
Subclasses are expected to provide a zero argument public constructor as well.
|
Modifier and Type | Method and Description |
---|---|
abstract ExecutorBusProcessor |
createExecutorBusProcessor(MessageBusBinding binding)
Create the executor bus processor for the given message bus binding.
|
public AbstractExecutorBusProcessorFactory()
public abstract ExecutorBusProcessor createExecutorBusProcessor(MessageBusBinding binding)
For applications that use multiple executor buses with different processing semantics the factory can return different process implementations. A factory may inspect the following from the binding in determining what processor to return:
MessageBusDescriptor
via the binding's getDescriptor()
method and use it to return the appropriate processor type. getUserName()
to determine the
user that created the bus. A Talon AepEngine for example will use the application name as the user name for a bus.
MessageBusDescriptor
via the binding's getDescriptor()
method and use it to return the appropriate processor type.binding
- The executor bus binding.Copyright © 2019 Neeve Research, LLC. All Rights Reserved.