pypeafowl.Peafowl.setExpectedFlows¶
-
Peafowl.
setExpectedFlows
(self: pypeafowl.Peafowl, flows: int, strategy: pypeafowl.FlowsStrategy) → None¶ Sets the number of simultaneously active flows to be expected.
- Args:
- flows
The number of simultaneously active flows.
- strategy
If PFWL_FLOWS_STRATEGY_NONE, there will not be any limit to the number of simultaneously active flows. However, this could lead to slowdown when retrieving flow information. If PFWL_FLOWS_STRATEGY_SKIP, when that number of active flows is reached, if a new flow is created an error will be returned (PFWL_ERROR_MAX_FLOWS) and new flows will not be created. If PFWL_FLOWS_STRATEGY_EVICT, when when that number of active flows is reached, if a new flow is created the oldest flow will be evicted.