COSNOTIFYCHANNELADMIN_STRUCTUREDPROXYPULLCONSUMER(3erl)
π CosNotifyChannelAdmin_StructuredProxyPullConsumer π
okay bestie, so this page is from the Erlang manual, CosNotifyC...ullConsumer(3), and we're about to get so into it π«Ά
β¨ NAME β¨
CosNotifyChannelAdmin_StructuredProxyPullConsumer β this module is the real one, the main character, and it implements the OMG CosNotifyChannelAdmin::StructuredProxyPullConsumer interface. no cap. π
πΈ DESCRIPTION πΈ
First things first, if you want access to the record definitions for the structures, you literally just do this:
-include_lib("cosNotification/include/*.hrl").
That's it. That's the move. π
This module also exports the functions described in these other modules, so consider this your little friend group:
CosNotifyComm_NotifyPublishCosNotification_QoSAdminCosNotifyFilter_FilterAdminCosNotifyChannelAdmin_ProxyConsumer
the way that it just inherits all that energyβ¦ obsessed. β¨
π¦ EXPORTS π¦
connect_structured_pull_supplier(StructuredProxyPullConsumer, PullSupplier) -> Reply
Types:
StructuredProxyPullConsumer = #objref
PullSupplier = #objref
Reply = ok | {'EXCEPTION',
#'CosEventChannelAdmin_AlreadyConnected'{}} | {'EXCEPTION',
#'CosEventChannelAdmin_TypeError'{}}
okay so this operation connects a PullSupplier to the target object. π
but listen β if a connection already exists, or the given client object doesn't support the functionspull_structured_eventandtry_pull_structured_event, an exception gets raised. so likeβ¦ don't do that. π
suspend_connection(StructuredProxyPullConsumer) -> Reply
Types:
StructuredProxyPullConsumer = #objref
Reply = ok | {'EXCEPTION',
#'CosNotifyChannelAdmin_ConnectionAlreadyInactive'{}} |
{'EXCEPTION', #'CosNotifyChannelAdmin_NotConnected'{}}
This one suspends the connection between the target object and its client. it's giving "we need a break" energy. π§
If no connection exists, or it's already suspended, an exception is raised. so double-check before you hit pause, bestie. π
resume_connection(StructuredProxyPullConsumer) -> Reply
Types:
StructuredProxyPullConsumer = #objref
Reply = ok | {'EXCEPTION',
#'CosNotifyChannelAdmin_ConnectionAlreadyInactive'{}} |
{'EXCEPTION', #'CosNotifyChannelAdmin_NotConnected'{}}
If the connection has been suspended, this is the operation you must use when you wanna resume it. we're back, babes. π₯
But β if the connection is already active, or no connection has been created at all, an exception is raised. so this only works on a suspended connection. periodt. π
disconnect_structured_pull_consumer(StructuredProxyPullConsumer) -> ok
Types:
StructuredProxyPullConsumer = #objref
This operation causes the target object to close the connection and terminate. it's the goodbye, the exit, the closing of the group chat. π and it returns ok. π
Ericsson AB β’ cosNotification 5.2.2 β’ that's the whole page, bestie β mwah, take care of your proxies ππβ¨
π¦ where this page comes from
- fedora 43: erlang-cosNotification 1:5.2.2-1.fc43 Β· Apache-2.0
- fedora 44: erlang-cosNotification 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