COSNOTIFYCHANNELADMIN_PROXYPUSHSUPPLIER(3erl)

πŸ“¦
version 5.2.2 Β· 2 versions
, in fedora 43, fedora 44

πŸ’– 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_NotifySubscribe
  • CosNotification_QoSAdmin
  • CosNotifyFilter_FilterAdmi
  • CosNotifyChannelAdmin_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