IceStorm.TopicPrx¶
- class IceStorm.TopicPrx¶
Bases:
ObjectPrxRepresents an IceStorm topic. Publishers publish data to a topic (via the topic’s publisher object), and subscribers subscribe to a topic.
Notes
The Slice compiler generated this proxy class from Slice interface
::IceStorm::Topic.- static checkedCast(proxy: ObjectPrx | None, facet: str | None = None, context: dict[str, str] | None = None) TopicPrx | None¶
Creates a new proxy from an existing proxy after confirming the target object’s type via a remote invocation.
- Parameters:
- Returns:
A new proxy with the requested type, or None if the source proxy is None or if the target object does not support the requested type.
- Return type:
ObjectPrx | None
- static checkedCastAsync(proxy: ObjectPrx | None, facet: str | None = None, context: dict[str, str] | None = None) Awaitable[TopicPrx | None]¶
Creates a new proxy from an existing proxy after confirming the target object’s type via a remote invocation.
- Parameters:
- Returns:
A new proxy with the requested type, or None if the source proxy is None or if the target object does not support the requested type.
- Return type:
ObjectPrx | None
- getLinkInfoSeq(context: dict[str, str] | None = None) list[LinkInfo]¶
Gets information on the current links.
- getLinkInfoSeqAsync(context: dict[str, str] | None = None) Awaitable[list[LinkInfo]]¶
Gets information on the current links.
- getNonReplicatedPublisher(context: dict[str, str] | None = None) ObjectPrx | None¶
Gets a non-replicated proxy to a publisher object for this topic. To publish data to a topic, a publisher calls this operation and then creates a proxy with the publisher type from this proxy.
- getNonReplicatedPublisherAsync(context: dict[str, str] | None = None) Awaitable[ObjectPrx | None]¶
Gets a non-replicated proxy to a publisher object for this topic. To publish data to a topic, a publisher calls this operation and then creates a proxy with the publisher type from this proxy.
- getPublisher(context: dict[str, str] | None = None) ObjectPrx | None¶
Gets a proxy to a publisher object for this topic. To publish data to a topic, a publisher calls this operation and then creates a proxy with the publisher type from this proxy. If a replicated IceStorm deployment is used, this call may return a replicated proxy.
- getPublisherAsync(context: dict[str, str] | None = None) Awaitable[ObjectPrx | None]¶
Gets a proxy to a publisher object for this topic. To publish data to a topic, a publisher calls this operation and then creates a proxy with the publisher type from this proxy. If a replicated IceStorm deployment is used, this call may return a replicated proxy.
- getSubscribers(context: dict[str, str] | None = None) list[Identity]¶
Gets the list of subscribers for this topic.
- getSubscribersAsync(context: dict[str, str] | None = None) Awaitable[list[Identity]]¶
Gets the list of subscribers for this topic.
- static ice_staticId() str¶
Gets the Slice type ID of the interface associated with this proxy.
- Returns:
The type ID, “::Ice::Object”.
- Return type:
- link(linkTo: TopicPrx | None, cost: int, context: dict[str, str] | None = None) None¶
Creates a link to another topic. All events originating on this topic will also be sent to the other topic.
- linkAsync(linkTo: TopicPrx | None, cost: int, context: dict[str, str] | None = None) Awaitable[None]¶
Creates a link to another topic. All events originating on this topic will also be sent to the other topic.
- subscribeAndGetPublisher(theQoS: Mapping[str, str], subscriber: ObjectPrx | None, context: dict[str, str] | None = None) ObjectPrx | None¶
Subscribes to this topic.
- Parameters:
- Returns:
The per-subscriber publisher proxy. This proxy is never null.
- Return type:
ObjectPrx | None
- Raises:
AlreadySubscribed – Thrown when
subscriberis already subscribed.BadQoS – Thrown when
theQoSis unavailable or invalid.
- subscribeAndGetPublisherAsync(theQoS: Mapping[str, str], subscriber: ObjectPrx | None, context: dict[str, str] | None = None) Awaitable[ObjectPrx | None]¶
Subscribes to this topic.
- Parameters:
- Returns:
The per-subscriber publisher proxy. This proxy is never null.
- Return type:
Awaitable[ObjectPrx | None]
- static uncheckedCast(proxy: ObjectPrx, facet: str | None = None) TopicPrx¶
- static uncheckedCast(proxy: None, facet: str | None = None) None
Creates a new proxy from an existing proxy.
- unlink(linkTo: TopicPrx | None, context: dict[str, str] | None = None) None¶
Destroys a link from this topic to the provided topic.
- Parameters:
- Raises:
NoSuchLink – Thrown when a link to
linkTodoes not exist.- Return type:
None
- unlinkAsync(linkTo: TopicPrx | None, context: dict[str, str] | None = None) Awaitable[None]¶
Destroys a link from this topic to the provided topic.
- unsubscribe(subscriber: ObjectPrx | None, context: dict[str, str] | None = None) None¶
Unsubscribes the provided
subscriberfrom this topic.