cosEventApp(3)
πΈ cosEventApp πΈ
okay bestie, this is cosEventApp(3) β an Erlang Module Definition, and it's literally the main character of the cosEvent application, no cap π
β¨ NAME β¨
cosEventApp β the main module of the cosEvent application. she runs the whole show π
π¦ DESCRIPTION π¦
so if you wanna get access to the record definitions for the structures, you gotta use this, exactly like this, don't freestyle it:
-include_lib("cosEvent/include/*.hrl").
and that's the vibe. This module is where the functions for starting and stopping the application live. that's her whole job and she does it flawlessly fr fr β¨
π EXPORTS π
π install() -> Return
Types:
Return = ok | {'EXCEPTION', E} | {'EXIT', R}
This operation installs the cosEvent application. slay, she's moving in π
π uninstall() -> Return
Types:
Return = ok | {'EXCEPTION', E} | {'EXIT', R}
This operation uninstalls the cosEvent application. okay bye bestie, it was real π«Ά
π start() -> Return
Types:
Return = ok | {error, Reason}
This operation starts the cosEvent application. wake up queen, it's time βοΈ
π stop() -> Return
Types:
Return = ok | {error, Reason}
This operation stops the cosEvent application. nap time π΄
π start_channel() -> Channel
Types:
Channel = #objref
This operation creates a new instance of a Event Channel using the default settings. no options needed, she just knows what to do π
π start_channel(Options) -> Channel
Types:
Options = [Option]
Option = {pull_interval, Seconds} | {typecheck, Boolean} |
{maxEvents, Integer} | {blocking, Boolean}
Channel = #objref
This operation creates a new instance of a Event Channel, and this time you get to pick the settings. here's the tea on every single option π:
{pull_interval, Seconds}β this one decides how often Proxy Pull Consumers will check for new events with the client application. the default value is 20 seconds. so yeah, every 20 seconds she's peeking π{typecheck, Boolean}β if this option is set totruethe proxies will check if the supplied client object is of correct type. the default value isfalse. lowkey chill by default, but flip it if you're feeling strict β¨{maxEvents, Integer}β this option determines how many events the ProxyPullSuppliers will store before discarding events. if the limit is reached, events will be discarded in any order. the default value is 300. so yeah, once the storage is full it's chaos out here, first come first yeeted π{blocking, Boolean}β this option determines the behavior of the channel when handling events internally. if set totrue, the risk of a single event supplier flooding the system is reduced, but the performance may also be reduced. the default value istrue. so it's giving protective big sister energy, but she might be a little slower walking π§
π start_channel_link() -> Channel
Types:
Channel = #objref
This operation creates a new instance of a Event Channel, which is linked to the invoking process, using the default settings. she's attached to you now, bestie, that's a commitment π
π start_channel_link(Options) -> Channel
Types:
Options = [Option]
Option = {pull_interval, Seconds} | {typecheck, Boolean} |
{maxEvents, Integer} | {blocking, Boolean}
Channel = #objref
This operation creates a new instance of a Event Channel, which is linked to the invoking process, with settings defined by the given options. the allowed options are the same as for cosEventApp:start_channel/1. same menu, different seating arrangement, periodt π
π stop_channel(Channel) -> Reply
Types:
Channel = #objref
Reply = ok | {'EXCEPTION', E}
This operation stops the target event channel. that channel's arc is complete, she's done, iconic to the very end π
reminder bestie: every function here is doing exactly what it says and nothing extra β no guessing, no improvising. read the types, respect the types π
and that's the whole page, we ate and left no crumbs πβ¨
shoutout to Ericsson AB for this one β cosEvent version 5.2.2, and this was the cosEventApp(3) manual page. mwah, go start some channels π
π
π¦ where this page comes from
- fedora 43: erlang-cosEvent 1:5.2.2-1.fc43 Β· Apache-2.0
- fedora 44: erlang-cosEvent 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