public abstract class Dispatcher
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.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 java.lang.String |
name |
| Modifier | Constructor and Description |
|---|---|
protected |
Dispatcher(java.lang.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.
|
java.util.Collection |
getConsumers() |
int |
getIdentifier() |
protected java.lang.String name
protected int identifier
protected java.util.Map<java.lang.String,ConsumerProfile> consumers
public java.util.Collection getConsumers()
public int getIdentifier()
public abstract void addConsumerProfile(ConsumerProfile cp) throws java.lang.IllegalArgumentException
cp - the event consumer profile to addjava.lang.IllegalArgumentExceptionpublic abstract void dispatch(Context ctx)
ctx - the execution context objectCopyright © 2013 DuraSpace. All Rights Reserved.