ctrlX Data Layer API for Python  3.3.0
The ctrlX Data Layer API allows access to the ctrlX Data Layer with Python
SubscriptionSync Class Reference
+ Inheritance diagram for SubscriptionSync:

Public Member Functions

def __init__ (self, ctrlxdatalayer.client.Client client)
 
def __enter__ (self)
 
def __exit__ (self, exc_type, exc_val, exc_tb)
 
def close (self)
 
str id (self)
 
def on_close (self)
 
Result subscribe (self, str address)
 
Result subscribe_multi (self, typing.List[str] address)
 
Result unsubscribe (self, str address)
 
Result unsubscribe_all (self)
 
Result unsubscribe_multi (self, typing.List[str] address)
 

Detailed Description

SubscriptionSync.

Definition at line 20 of file subscription_sync.py.

Constructor & Destructor Documentation

◆ __init__()

Member Function Documentation

◆ id()

◆ subscribe()

Result subscribe (   self,
str  address 
)

Adds a node to a subscription id.

Parameters
[in]addressAddress of a node, that should be added to the given subscription.
Returns
<Result> status of function call

Definition at line 135 of file subscription_sync.py.

References SubscriptionAsync.__client, SubscriptionSync.__client, Subscription.id(), SubscriptionAsync.id(), and SubscriptionSync.id().

◆ subscribe_multi()

Result subscribe_multi (   self,
typing.List[str]  address 
)

Adds a list of nodes to a subscription id.

Parameters
[in]addressList of Addresses of a node, that should be added to the given subscription.
[in]countCount of addresses.
Returns
<Result> status of function call

Definition at line 158 of file subscription_sync.py.

References SubscriptionAsync.__client, SubscriptionSync.__client, Subscription.id(), SubscriptionAsync.id(), and SubscriptionSync.id().

◆ unsubscribe()

Result unsubscribe (   self,
str  address 
)

Removes a node from a subscription id.

Parameters
[in]addressAddress of a node, that should be removed to the given subscription.
Returns
<Result> status of function call

Definition at line 146 of file subscription_sync.py.

References SubscriptionAsync.__client, SubscriptionSync.__client, Subscription.id(), SubscriptionAsync.id(), and SubscriptionSync.id().

◆ unsubscribe_all()

Result unsubscribe_all (   self)

Removes subscription id completely.

Returns
<Result> status of function call

Definition at line 181 of file subscription_sync.py.

References SubscriptionAsync.__client, SubscriptionSync.__client, Subscription.id(), SubscriptionAsync.id(), and SubscriptionSync.id().

Referenced by SubscriptionAsync.close(), and SubscriptionSync.close().

◆ unsubscribe_multi()

Result unsubscribe_multi (   self,
typing.List[str]  address 
)

Removes a set of nodes from a subscription id.

Parameters
[in]addressSet of addresses of nodes, that should be removed to the given subscription.
Returns
<Result> status of function call

Definition at line 170 of file subscription_sync.py.

References SubscriptionAsync.__client, SubscriptionSync.__client, Subscription.id(), SubscriptionAsync.id(), and SubscriptionSync.id().