COSNOTIFYCHANNELADMIN_STRUCTUREDPROXYPUSHCONSUMER(3erl)

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

okay bestie, welcome to the Erlang Module Definition for CosNotifyC...ushConsumer(3) β€” and it's literally all about that CosNotifyChannelAdmin_StructuredProxyPushConsumer life πŸ’…βœ¨


πŸ’– NAME πŸ’–

CosNotifyChannelAdmin_StructuredProxyPushConsumer β€” this module implements the OMG CosNotifyChannelAdmin::StructuredProxyPushConsumer interface. no cap, that's the whole vibe.


🌸 DESCRIPTION 🌸

To get access to the record definitions for the structures use:

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

This module also exports the functions described in:

  • CosNotifyComm_NotifyPublish
  • CosNotification_QoSAdmin
  • CosNotifyFilter_FilterAdmin
  • CosNotifyChannelAdmin_ProxyConsumer

✨ EXPORTS ✨

πŸ¦‹ connect_structured_push_supplier πŸ¦‹

connect_structured_push_supplier(StructuredProxyPushConsumer,
       PushSupplier) -> Reply

Types:

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

This operation connects a PushSupplier to the target object. If a connection already exists an exception is raised. so don't try to double-connect, bestie, it will literally raise an exception πŸ’€

🌈 push_structured_event 🌈

push_structured_event(StructuredProxyPushConsumer, StructuredEvent) ->
       Reply

Types:

StructuredProxyPushConsumer = #objref
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'{}}

When a client want to push a new event to the target object this operation must be used. so if you're the client and you got a new event, this is the move, periodt πŸ”₯

πŸ‘‘ disconnect_structured_push_consumer πŸ‘‘

disconnect_structured_push_consumer(StructuredProxyPushConsumer) -> ok

Types:

StructuredProxyPushConsumer = #objref

This operation cause the target object to close the connection and terminate. it's giving "bye, connection, it's over" πŸ’…


and that's the tea, bestie πŸ’– this page was brought to you by Ericsson AB, version cosNotification 5.2.2, and the manual CosNotifyC...ushConsumer(3) β€” stay iconic ✨

πŸ“¦ where this page comes from