dragon.infrastructure.connection.ConnectionOptions

class ConnectionOptions

Bases: object

Options class for customizing a Connection

Separate object because this will expand over time.

There are a number of different facts about how one might want a Connection object to behave vs. its underlying Channels and its interaction with Global Services, together with anticipated need to let someone customize how the object behaves for performance. This object is meant to organize all these into one object.

__init__(*, creation_policy=CreationPolicy.EXTERNALLY_MANAGED, min_block_size=None, large_block_size=None, huge_block_size=None, default_pool=None)

Methods

__init__(*[, creation_policy, ...])

class CreationPolicy

Bases: Enum

EXTERNALLY_MANAGED = 1
PRE_CREATED = 2
RECEIVER_CREATES = 3
SENDER_CREATES = 4
classmethod __contains__(member)

Return True if member is a member of this enum raises TypeError if member is not an enum member

note: in 3.12 TypeError will no longer be raised, and True will also be returned if member is the value of a member in this enum

classmethod __getitem__(name)

Return the member matching name.

classmethod __len__()

Return the number of members (no aliases)

__init__(*, creation_policy=CreationPolicy.EXTERNALLY_MANAGED, min_block_size=None, large_block_size=None, huge_block_size=None, default_pool=None)