VisiBroker for Java

org.omg.CosEventComm
Interface PullSupplierOperations

All Known Subinterfaces:
ProxyPullSupplier, ProxyPullSupplier, ProxyPullSupplierOperations, ProxyPullSupplierOperations, PullSupplier, PullSupplier, PullSupplierOperations, TypedProxyPullSupplier, TypedProxyPullSupplierOperations, org.omg.CosTypedEventComm.TypedPullSupplier, TypedPullSupplier, org.omg.CosTypedEventComm.TypedPullSupplierOperations, TypedPullSupplierOperations

public interface PullSupplierOperations

This interface is used to derive supplier objects that use the pull model of communication.


Method Summary
 void disconnect_pull_supplier()
          Terminates the event communication.
 Any pull()
          This method blocks until there is data available from the supplier.
 Any try_pull(BooleanHolder has_event)
          This non-blocking method attempts to retrieve data from the supplier.
 

Method Detail

disconnect_pull_supplier

void disconnect_pull_supplier()
Terminates the event communication.


try_pull

Any try_pull(BooleanHolder has_event)
             throws Disconnected
This non-blocking method attempts to retrieve data from the supplier. When this method returns, has_event is set to the value true and the data is returned as a CORBA::Any type if there was data available. If has_event is set to the value false, then no data was available and the return value will be NULL.

Parameters:
has_event - set to true if event data is available, falseotherwise.
Returns:
the event data in an CORBA::Any
Throws:
Disconnected

pull

Any pull()
         throws Disconnected
This method blocks until there is data available from the supplier. The data returned is an Any type. If the consumer has disconnected, this method raises a Disconnected exception.

Returns:
the event data in an CORBA::Any
Throws:
Disconnected

Borland Software Corporation
http://www.borland.com
100 Enterprise Way
Scotts Valley, CA 95066
Voice: (831) 431-1000
pubsweb@borland.com

Read the latest documentation online