---
name: "CosNotifyChannelAdmin_EventChannel"
section: "3erl"
platform: "linux"
package: "erlang-manpages"
version: "1:19.2.1+dfsg-2+deb9u3"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/CosNotifyChannelAdmin_EventChannel"
---

# CosNotifyChannelAdmin\_EventChannel(3erl)

This module implements the OMG CosNotifyChannelAdmin::EventChannel interface.

## NAME

CosNotifyChannelAdmin\_EventChannel - This module implements the OMG  CosNotifyChannelAdmin::EventChannel interface.

## 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:

- \*

  **CosNotification\_QoSAdmin**

- \*

  **CosNotification\_AdminPropertiesAdmin**

## EXPORTS

**\_get\_MyFactory(Channel) -\> ChannelFactory**\

Types:

Channel = #objref\
 ChannelFactory = #objref\

This readonly attribute maintains the reference of the event channel factory that created the target channel.

**\_get\_default\_consumer\_admin(Channel) -\> ConsumerAdmin**\

Types:

Channel = #objref\
 ConsumerAdmin = #objref\

This is a readonly attribute which maintains a reference to a default *ConsumerAdmin* object associated with the target object.

**\_get\_default\_supplier\_admin(Channel) -\> SupplierAdmin**\

Types:

Channel = #objref\
 SupplierAdmin = #objref\

This is a readonly attribute which maintains a reference to a default *SupplierAdmin* object associated with the target object.

**\_get\_default\_filter\_factory(Channel) -\> FilterFactory**\

Types:

Channel = #objref\
 FilterFactory = #objref\

The default *FilterFactory* associated with the target channel is maintained by this readonly attribute.

**new\_for\_consumers(Channel, OpType) -\> Return**\

Types:

Channel = #objref\
 OpType = 'AND\_OP' \| 'OR\_OP'\
 Return = {ConsumerAdmin, AdminID}\
 ConsumerAdmin = #objref\
 AdminID = long()\

This operation creates a new instance of a *ConsumerAdmin* and supplies an Id which may be used when invoking other operations exported by this module. The returned object will inherit the Quality of Service properties of the target channel.

**for\_consumers(Channel) -\> ConsumerAdmin**\

Types:

Channel = #objref\
 ConsumerAdmin = #objref\

A new new instance of a *ConsumerAdmin* object is created but no Id is returned. The returned object's operation type, i.e., *'AND\_OP'* or *'OR\_OP'*, will be set to the value of the configuration parameter *filterOp*. The target object's Quality of Service properties will be inherited by the returned *ConsumerAdmin*.

**new\_for\_suppliers(Channel, OpType) -\> Return**\

Types:

Channel = #objref\
 OpType = 'AND\_OP' \| 'OR\_OP'\
 Return = {SupplierAdmin, AdminID}\
 SupplierAdmin = #objref\
 AdminID = long()\

Enables us to create a new instance of a *SupplierAdmin*. An Id, which may be used when invoking other operations exported by this module, is also returned. The current Quality of Service settings associated with the target object will be inherited by the *SupplierAdmin*.

**for\_suppliers(Channel) -\> SupplierAdmin**\

Types:

Channel = #objref\
 SupplierAdmin = #objref\

To create a new *SupplierAdmin* with the target object's current Quality of Service settings we can use this function. The returned object's operation type (*'AND\_OP'* or *'OR\_OP'*) will be determined by the configuration variable *filterOp*.

**get\_consumeradmin(Channel, AdminID) -\> ConsumerAdmin**\

Types:

Channel = #objref\
 AdminID = long()\
 ConsumerAdmin = #objref \| {'EXCEPTION', #'CosNotifyChannelAdmin\_AdminNotFound'{}}\

If the given Id is associated with a *ConsumerAdmin* the object reference is returned. If such association never existed or the *ConsumerAdmin* have terminated an exception is raised.

**get\_supplieradmin(Channel, AdminID) -\> SupplierAdmin**\

Types:

Channel = #objref\
 AdminID = long()\
 SupplierAdmin = #objref \| {'EXCEPTION', #'CosNotifyChannelAdmin\_AdminNotFound'{}}\

Equal to the operation *get\_consumeradmin/2* but a reference to a *SupplierAdmin* is returned.

**get\_all\_consumeradmins(Channel) -\> Reply**\

Types:

Channel = #objref\
 Reply = \[AdminID\]\
 AdminID = long()\

To get access to all *ConsumerAdmin* Id's created by the target object, and still alive, this operation could be invoked.

**get\_all\_supplieradmins(Channel) -\> Reply**\

Types:

Channel = #objref\
 Reply = \[AdminID\]\
 AdminID = long()\

Equal to the operation *get\_all\_consumeradmins/1* but returns a list of all *SupplierAdmin* object ID's.

**destroy(Channel) -\> ok**\

Types:

Channel = #objref\

The *destroy* operation will terminate the target channel and all associated Admin objects.
