Dequeue
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
Function Description
Sets balanced distribution affinity.
Prototype
1 | virtual int32_t Dequeue(std::shared_ptr<FlowMsg> &flowMsg, int32_t timeout = -1) = 0 |
Command-Line Options
Parameter |
Input/Output |
Description |
|---|---|---|
flowMsg |
Output |
Dequeued FlowMsg. |
timeout |
Input |
Dequeue timeout, in ms. The default value is -1, indicating that the current thread is blocked until an element can be obtained from the queue. |
Returns
- 0: success
- Other values: failure. For details, see UDF Error Codes.
Troubleshooting
None
Constraints
None
Parent topic: Class FlowMsgQueue