1
<?xml version="1.0" encoding="latin1" ?>
2
<!DOCTYPE erlref SYSTEM "erlref.dtd">
9
<holder>Ericsson AB, All Rights Reserved</holder>
12
The contents of this file are subject to the Erlang Public License,
13
Version 1.1, (the "License"); you may not use this file except in
14
compliance with the License. You should have received a copy of the
15
Erlang Public License along with this software. If not, it can be
16
retrieved online at http://www.erlang.org/.
18
Software distributed under the License is distributed on an "AS IS"
19
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
20
the License for the specific language governing rights and limitations
23
The Initial Developer of the Original Code is Ericsson AB.
26
<title>CosEventChannelAdmin_­ProxyPushConsumer</title>
27
<shorttitle>..._ProxyPushConsumer</shorttitle>
29
<responsible></responsible>
33
<date>1997-11-13</date>
35
<file>CosEventChannelAdmin_ProxyPushConsumer.xml</file>
37
<module>CosEventChannelAdmin_ProxyPushConsumer</module>
38
<modulesummary>This module implements a ProxyPushConsumer interface which acts as a middleman between push supplier and the event channel.</modulesummary>
40
<p>The ProxyPushConsumer interface defines the second step for connecting push
41
suppliers to the event channel. A proxy consumer is similar to a normal consumer,
42
but includes an additional method for connecting a supplier to the proxy
44
<p>To get access to all definitions, e.g., exceptions,
45
include necessary <c><![CDATA[hrl]]></c> files by using:<br></br><c><![CDATA[-include_lib("cosEvent/include/*.hrl").]]></c></p>
46
<p>Any object that possesses an object reference that supports the ProxyPushConsumer
47
interface can perform the following operations:</p>
51
<name>connect_push_supplier(Object, PushSupplier) -> Return</name>
52
<fsummary>Connect the push supplier to the proxy push consumer</fsummary>
54
<v>Object = #objref</v>
55
<v>PushSupplier = #objref of PushSupplier type</v>
56
<v>Return = ok | {'EXCEPTION', #'CosEventChannelAdmin_AlreadyConnected'{}}</v>
59
<p>This operation connects PushSupplier object to the ProxyPushConsumer object.
60
A nil object reference can be passed to this operation. If so a channel
61
cannot invoke the disconnect_push_supplier operation on the supplier;
62
the supplier may be disconnected from the channel without being
63
informed. If the ProxyPushConsumer is already connected to a
64
PushSupplier, then the <c><![CDATA[CosEventChannelAdmin_AlreadyConnected]]></c>
65
exception is raised.</p>
69
<name>disconnect_push_consumer(Object) -> Return</name>
70
<fsummary>Disconnect the ProxyPushConsumer object from the event channel.</fsummary>
72
<v>Object = #objref</v>
76
<p>This operation disconnects proxy push consumer from the event channel.
77
Sends a notification about the loss of the connection to the push supplier
78
attached to it, unless nil object reference was passed at the connection
83
<name>push(Object, Data) -> Return</name>
84
<fsummary>Communicate event data to the consumers.</fsummary>
86
<v>Object = #objref</v>
88
<v>Return = ok | {'EXCEPTION', #'CosEventComm_Disconnected'{}}</v>
91
<p>This operation sends event data to all connected consumers via the
92
event channel. If the event communication has already been disconnected,
93
the <c><![CDATA[CosEventComm_Disconnected]]></c> is raised.</p>