org.openorb.event
Class ProxyPullConsumerImpl

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by org.omg.CosEventChannelAdmin.ProxyPullConsumerPOA
          extended by org.openorb.event.ProxyPullConsumerImpl
All Implemented Interfaces:
java.lang.Runnable, org.omg.CORBA.portable.InvokeHandler, ProxyPullConsumerOperations, PullConsumerOperations

public class ProxyPullConsumerImpl
extends ProxyPullConsumerPOA
implements java.lang.Runnable

The ProxyPullConsumer interface defines the second step for connecting pull suppliers to the event channel.

Author:
Jerome Daniel, Olivier Modica

Constructor Summary
ProxyPullConsumerImpl(EventChannelImpl channel)
          Constructor
 
Method Summary
 void connect_pull_supplier(PullSupplier pullSupplier)
          This operation is used to connect a pull_supplier from this proxy will try to get events.
 void disconnect_pull_consumer()
          The disconnect_pull_consumer operation terminates the event communication; it releases resources used at the consumer to support the event communication.
 void run()
          Entry point for a thread
 
Methods inherited from class org.omg.CosEventChannelAdmin.ProxyPullConsumerPOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyPullConsumerImpl

public ProxyPullConsumerImpl(EventChannelImpl channel)
Constructor

Method Detail

connect_pull_supplier

public void connect_pull_supplier(PullSupplier pullSupplier)
                           throws AlreadyConnected
This operation is used to connect a pull_supplier from this proxy will try to get events.

Specified by:
connect_pull_supplier in interface ProxyPullConsumerOperations
Parameters:
pullSupplier - the pull_supplier to connect
Throws:
AlreadyConnected - If the ProxyPullConsumer is already connected to a PullSupplier, then the AlreadyConnected exception is raised.

disconnect_pull_consumer

public void disconnect_pull_consumer()
The disconnect_pull_consumer operation terminates the event communication; it releases resources used at the consumer to support the event communication. The PullConsumer object reference is disposed.

Specified by:
disconnect_pull_consumer in interface PullConsumerOperations

run

public void run()
Entry point for a thread

Specified by:
run in interface java.lang.Runnable