|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventChannel
An EventChannel is a service that decouples the communication of events between suppliers and consumers of events. It is an intervening object that allows multiple suppliers to communicate with multiple suppliers asynchronously. The event channel itself is both a supplier and consumer of events. This service only offers a push model of communication for both consumers and suppliers of events. Particular implementations of this service will provide specific guarantees in terms of reliability, ordering (and possibly timeliness) of the event communication.
Method Summary | |
---|---|
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. |
Method Detail |
---|
void addConsumer(Object consumer) throws org.objectweb.jonathan.apis.kernel.JonathanException
consumer
- the consumer object to add
org.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 remove
org.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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |