public abstract class Dispatcher extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,ConsumerProfile> |
consumers
Map of consumers by their configured name.
|
protected int |
identifier
unique identifier of this dispatcher - cached hash of its text Name
|
protected String |
name |
| Modifier | Constructor and Description |
|---|---|
protected |
Dispatcher(String name) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addConsumerProfile(ConsumerProfile cp)
Add a consumer profile to the end of the list.
|
abstract void |
dispatch(Context ctx)
Dispatch all events added to this Context according to configured
consumers.
|
Collection |
getConsumers() |
int |
getIdentifier() |
protected String name
protected int identifier
protected Map<String,ConsumerProfile> consumers
protected Dispatcher(String name)
public Collection getConsumers()
public int getIdentifier()
public abstract void addConsumerProfile(ConsumerProfile cp) throws IllegalArgumentException
cp - the event consumer profile to addIllegalArgumentExceptionpublic abstract void dispatch(Context ctx)
ctx - the execution context objectCopyright © 2014 DuraSpace. All Rights Reserved.