COSNOTIFYCHANNELADMIN_SEQUENCEPROXYPUSHCONSUMER(3erl)

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

✨ NAME ✨

CosNotifyChannelAdmin_SequenceProxyPushConsumer β€” okay bestie, this module is the Erlang implementation of the OMG CosNotifyChannelAdmin::SequenceProxyPushConsumer interface. That's it, that's the whole job. πŸ’…

This page lives in the Erlang Module Definition section of the manual, so like… you're in the right place, you found her. πŸŽ€


🌸 DESCRIPTION 🌸

So you wanna get access to the record definitions for all these structures? Say less. Drop this in your code:

-include_lib("cosNotification/include/*.hrl").

That's the incantation. Do it or you'll be out here fighting undefined records and that's not the vibe. πŸ¦‹

Also!! This module exports the functions described in these other modules, so lowkey you're getting a whole bundle deal:

  • CosNotifyComm_NotifyPublish
  • CosNotification_QoSAdmin
  • CosNotifyFilter_FilterAdmin
  • CosNotifyChannelAdmin_ProxyConsumer

Like, she's not doing this alone. It's giving collab era. πŸ‘‘


πŸ’– EXPORTS πŸ’–

connect_sequence_push_supplier(SequenceProxyPushConsumer, PushSupplier) -> Reply

Types:

SequenceProxyPushConsumer = #objref
PushSupplier = #objref
Reply = ok | {'EXCEPTION', #'CosEventChannelAdmin_AlreadyConnected'{}}

This operation connects a PushSupplier to the target object. 🫢

🚨 BUT. If a connection already exists, the AlreadyConnected exception gets raised. So like, check first, bestie. Don't be messy.

push_structured_events(SequenceProxyPushConsumer, EventBatch) -> Reply

Types:

SequenceProxyPushConsumer = #objref
EventBatch = [StructuredEvent]
StructuredEvent = #'CosNotification_StructuredEvent'{header, filterable_data, remainder_of_body}
header = EventHeader
filterable_data = [#'CosNotification_Property'{name, value}]
name = string()
value = #any
remainder_of_body = #any
EventHeader = #'CosNotification_EventHeader'{fixed_header, variable_header}
fixed_header = FixedEventHeader
variable_header = OptionalHeaderFields
FixedEventHeader = #'CosNotification_FixedEventHeader'{event_type, event_name}
event_type = EventType
event_name = string()
EventType = #'CosNotification_EventType'{domain_name, type_name}
domain_name = type_name = string()
OptionalHeaderFields = [#'CosNotification_Property'{name, value}]
Reply = ok | {'EXCEPTION', #'CosEventChannelAdmin_Disconnected'{}}

A client has to use this operation when it wants to push a new sequence of events to the target object. It's literally the whole point. ✨

😭 And if there's no connection? The Disconnected exception is raised. So no connection, no service, fr fr.

disconnect_sequence_push_consumer(SequenceProxyPushConsumer) -> ok

Types:

SequenceProxyPushConsumer = #objref

This operation causes the target object to close the connection and terminate. It's the goodbye operation. The Irish exit. She's leaving the group chat. πŸ’€


πŸ¦‹ SEE ALSO πŸ¦‹

Hmm, there's no SEE ALSO section in this one bestie, but the DESCRIPTION did point you at CosNotifyComm_NotifyPublish, CosNotification_QoSAdmin, CosNotifyFilter_FilterAdmin and CosNotifyChannelAdmin_ProxyConsumer, so go read those if you want the full lore. iykyk πŸ“š


Okay that's the whole page, you ate that. πŸ’–

Brought to you by Ericsson AB β€” this is cosNotification version 5.2.2, and the manual page is CosNotifyC...ushConsumer(3). Thanks for coming to my TED talk, mwah, slay, periodt. πŸ’…βœ¨πŸŒˆ

πŸ“¦ where this page comes from