Glacier2.StringSet

class Glacier2.StringSet

Bases: Object, ABC

Manages a set of constraints on a Glacier2.SessionPrx.

Notes

The Slice compiler generated this skeleton class from Slice interface ::Glacier2::StringSet.

abstractmethod add(additions: list[str], current: Current) None | Awaitable[None]

Adds a sequence of strings to this set of constraints. Order is not preserved and duplicates are implicitly removed.

Parameters:
  • additions (list[str]) – The sequence of strings to add.

  • current (Ice.Current) – The Current object for the dispatch.

Returns:

None or an awaitable that completes when the dispatch completes.

Return type:

None | Awaitable[None]

abstractmethod get(current: Current) Sequence[str] | Awaitable[Sequence[str]]

Gets a sequence of strings describing the constraints in this set.

Parameters:

current (Ice.Current) – The Current object for the dispatch.

Returns:

The sequence of strings for this set.

Return type:

Sequence[str] | Awaitable[Sequence[str]]

static ice_staticId() str

Obtain the type ID of the Slice interface.

Returns:

The type ID.

Return type:

str

abstractmethod remove(deletions: list[str], current: Current) None | Awaitable[None]

Removes a sequence of strings from this set of constraints. No errors are returned if an entry is not found.

Parameters:
  • deletions (list[str]) – The sequence of strings to remove.

  • current (Ice.Current) – The Current object for the dispatch.

Returns:

None or an awaitable that completes when the dispatch completes.

Return type:

None | Awaitable[None]