org.openorb.notify
Interface ConsumerAdapter


public interface ConsumerAdapter

A unifying interface to talk to different kinds consumers in a uniform way.

Author:
Lars Kühne
See Also:
PushConsumer, SequencePushConsumer, StructuredPushConsumer

Method Summary
 void disconnect()
          Disconnect the consumer.
 void push(Event event)
          Pushes an event to the underlying consumer, performing the necessary event transformations.
 

Method Detail

push

void push(Event event)
          throws Disconnected
Pushes an event to the underlying consumer, performing the necessary event transformations.

Parameters:
event - the event to push
Throws:
Disconnected
See Also:
EventTranslator

disconnect

void disconnect()
Disconnect the consumer.