CosEventCh...llConsumer(3)
π CosEventChannelAdmin_ProxyPullConsumer π
okay bestie, so this page is from the CosEventCh...llConsumer(3) manual (Erlang module definition energy β¨), and it's all about a lil module called CosEventChannelAdmin_ProxyPullConsumer. Yes the name is long. No we are not shortening it. She's iconic, she's got the whole government name, periodt.
π NAME π
CosEventChannelAdmin_ProxyPullConsumer β this module implements a ProxyPullConsumer interface that lowkey acts as a middleman between a pull supplier and the event channel. Matchmaker vibes fr fr π
πΈ DESCRIPTION πΈ
The ProxyPullConsumer interface is step two in the whole "connecting pull suppliers to the event channel" saga. Think of a proxy consumer like a regular consumer but with one extra trick up her sleeve: she's got an additional method for connecting a supplier to the proxy consumer. Main character behavior honestly π
To get access to all the definitions β exceptions included, no crumbs left behind β include the necessary hrl files like this:
-include_lib("cosEvent/include/*.hrl").
Any object that possesses an object reference that supports the ProxyPullConsumer interface can perform the following operations:
β¨ EXPORTS β¨
π¦ connect_pull_supplier(Object, PullSupplier) -> Return
Types:
Object = #objref
PullSupplier = #objref of PullSupplier type
Return = ok | {'EXCEPTION', E}
E = #'CosEventChannelAdmin_AlreadyConnected'{} |
#'CosEventChannelAdmin_TypeError'{}
This operation connects the PullSupplier object to the ProxyPullConsumer object. Gluing them together. Besties forever, kinda.
π¨ Heads up though: if you pass a nil object reference, the CORBA standard BAD_PARAM exception gets raised. Not the vibe.
If the ProxyPullConsumer is already connected to a PullSupplier (she's taken, sorry), then the CosEventChannelAdmin_AlreadyConnected exception is raised.
And one more thing bestie: implementations of ProxyPullConsumers may require additional interface functionality, and if those requirements are not met, the CosEventChannelAdmin_TypeError exception will be raised. So likeβ¦ read the room, meet the requirements, slay π
π disconnect_pull_consumer(Object) -> Return
Types:
Object = #objref
Return = ok
This operation disconnects the proxy pull consumer from the event channel, and it sends a notification about the loss of the connection to the pull supplier attached to it. It's giving "we need to talk" text at 2am π but for CORBA objects. Closure is important bestie π«Ά
and that's the whole page, no cap β¨
This was brought to you by Ericsson AB and cosEvent version 5.2.2 β so like, credit where credit is due, she ate and left no crumbs ππΈπ¦
π¦ where this page comes from
- fedora 43: erlang-cosEvent 1:5.2.2-1.fc43 Β· Apache-2.0
- fedora 44: erlang-cosEvent 1:5.2.2-1.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms