org.objectweb.jeremie.binding.echannel
Interface EventChannel
- Remote
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.
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.
|
addConsumer
public void addConsumer(Object consumer)
throws JonathanException
Add a new consumer to the event channel. The consumer object should be of
type compatible with that of the event channel
consumer
- the consumer object to add
getConsumerProxy
public Object getConsumerProxy()
throws JonathanException
Returns a consumer proxy object which can be used by producer to supply
events to the channel
- a consumer proxy for the EventChannel
removeConsumer
public void removeConsumer(Object consumer)
throws JonathanException
Remove an existing consumer object from the event channel. The consumer
object specified will no longer receive events from the event channel
consumer
- the consumer object to remove