dragon.infrastructure.connection.ConnectionOptions
- class ConnectionOptions[source]
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)[source]
Methods
__init__
(*[, creation_policy, ...])- class CreationPolicy[source]
Bases:
Enum
- EXTERNALLY_MANAGED = 1
- PRE_CREATED = 2
- RECEIVER_CREATES = 3
- SENDER_CREATES = 4