public interface EventChannel extends Remote
Modifier and Type | Method and Description |
---|---|
void |
addConsumer(Object consumer)
Add a new consumer to the event channel.
|
Object |
getConsumerProxy()
Returns a consumer proxy object which can be used by producer to supply
events to the channel
|
void |
removeConsumer(Object consumer)
Remove an existing consumer object from the event channel.
|
void addConsumer(Object consumer) throws org.objectweb.jonathan.apis.kernel.JonathanException
consumer
- the consumer object to addorg.objectweb.jonathan.apis.kernel.JonathanException
- thrown if the consumer object cannot be addedvoid removeConsumer(Object consumer) throws org.objectweb.jonathan.apis.kernel.JonathanException
consumer
- the consumer object to removeorg.objectweb.jonathan.apis.kernel.JonathanException
- thrown of the specified consumer object
cannot be removedObject getConsumerProxy() throws org.objectweb.jonathan.apis.kernel.JonathanException
org.objectweb.jonathan.apis.kernel.JonathanException
- thrown if the operation fails