COSNOTIFYCHANNELADMIN_PROXYPUSHSUPPLIER(3erl)
π CosNotifyChannelAdmin_ProxyPushSupplier π
okay bestie, welcome to CosNotifyChannelAdmin_ProxyPushSupplier from the cosNotification manual, version 5.2.2 β¨ β yes this is the Erlang module definition, and yes it's about to be your new fave.
πΈ NAME πΈ
This module is the implementation of the OMG CosNotifyChannelAdmin::ProxyPushSupplier interface. that's it, that's the name, she's iconic π
π¦ DESCRIPTION π¦
so like, first things first: to actually get access to the record definitions for the structures, you use this:
-include_lib("cosNotification/include/*.hrl").
no cap, that's the whole vibe right there π
This module ALSO exports the functions that are described in these other modules, so go give them a lil read too:
CosNotifyComm_NotifySubscribeCosNotification_QoSAdminCosNotifyFilter_FilterAdmiCosNotifyChannelAdmin_ProxySupplier
(it's giving "collab", it's giving "crossover episode" π«Ά)
π EXPORTS π
β¨ connect_any_push_consumer(ProxyPushSupplier, PushConsumer) -> Reply
Types:
ProxyPushSupplier = #objref
PushConsumer = #objref
Reply = ok | {'EXCEPTION',
#'CosEventChannelAdmin_AlreadyConnected'{}} | {'EXCEPTION',
#'CosEventChannelAdmin_TypeError'{}}
so this operation connects a PushConsumer to the target object π« BUT β and listen closely bestie β if a connection already exists, or if the given client does not support the operation, an exception gets raised: AlreadyConnected and TypeError respectively. so like, don't try to double-book her, she will NOT be nice about it π
β¨ suspend_connection(ProxyPushSupplier) -> Reply
Types:
ProxyPushSupplier = #objref
Reply = ok | {'EXCEPTION',
#'CosNotifyChannelAdmin_ConnectionAlreadyInactive'{}} |
{'EXCEPTION', #'CosNotifyChannelAdmin_NotConnected'{}}
This one suspends the connection with the client object π and if the connection is already suspended, or if no client has been associated at all, an exception is raised. like girl, there's nothing to pause, why are you here π
β¨ resume_connection(ProxyPushSupplier) -> Reply
Types:
ProxyPullConsumer = #objref
Reply = ok | {'EXCEPTION',
#'CosNotifyChannelAdmin_ConnectionAlreadyInactive'{}} |
{'EXCEPTION', #'CosNotifyChannelAdmin_NotConnected'{}}
okay so if a connection got suspended earlier, calling this operation resumes it π₯ main character energy, she's back. BUT if the connection is already active, or if no client has been connected, an exception is raised. (yes, same exceptions as the suspend one, the vibes are consistent π)
β¨ disconnect_push_supplier(ProxyPushSupplier) -> ok
Types:
ProxyPushSupplier = #objref
This operation makes the target object close the connection and terminate. she's logging off, closing the tab, going to bed π΄ periodt.
and that's the whole page, bestie, no notes π
cute lil sign-off time: this one's brought to you by Ericsson AB, sitting pretty at cosNotification version 5.2.2 π stay slay, stay connected (or suspended, respectfully) π¦β¨
π¦ 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