Glacier2.IdentitySet

class Glacier2.IdentitySet

Bases: Object, ABC

Manages a set of object identity constraints on a Glacier2.SessionPrx.

Notes

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

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

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

Parameters:
  • additions (list[Identity]) – The sequence of Ice identities 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[Identity] | Awaitable[Sequence[Identity]]

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

Parameters:

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

Returns:

The sequence of Ice identities for this set.

Return type:

Sequence[Identity] | Awaitable[Sequence[Identity]]

static ice_staticId() str

Obtain the type ID of the Slice interface.

Returns:

The type ID.

Return type:

str

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

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

Parameters:
  • deletions (list[Identity]) – The sequence of Ice identities 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]