|
VLink
2.0.0
A high-performance communication middleware
|
Reader-side event raised when an inbound sample is dropped due to a resource limit. 更多...
#include <status_detail.h>
Public 类型 | |
| enum | Kind : uint8_t { kNotRejected = 0 , kRejectedByInstancesLimit = 1 , kRejectedBySamplesLimit = 2 , kRejectedBySamplesPerInstanceLimit = 3 } |
| Reason codes describing which resource ceiling rejected the sample. 更多... | |
Public 成员函数 | |
| Type | get_type () const override |
Returns kSampleRejected. 更多... | |
| std::string | get_string () const override |
Returns the literal "SampleRejected". 更多... | |
Public 成员函数 继承自 vlink::Status::Base | |
| template<typename T > | |
| std::shared_ptr< T > | as () const |
Safely narrows this event to a concrete Status subclass. 更多... | |
Public 属性 | |
| int32_t | total_count {0} |
| Cumulative samples rejected. 更多... | |
| int32_t | total_count_change {0} |
Delta in total_count since the last notification. 更多... | |
| Kind | last_reason {kNotRejected} |
| Reason code for the most recent rejection. 更多... | |
| InstanceHandle | last_instance_handle {nullptr} |
| Opaque handle of the rejected instance. 更多... | |
友元 | |
| VLINK_EXPORT friend std::ostream & | operator<< (std::ostream &ostream, const SampleRejected &status) noexcept |
Streams the counter and reason fields to ostream. 更多... | |
额外继承的成员函数 | |
Protected 成员函数 继承自 vlink::Status::Base | |
| Base () | |
| virtual | ~Base () |
Reader-side event raised when an inbound sample is dropped due to a resource limit.
| enum vlink::Status::SampleRejected::Kind : uint8_t |
Reason codes describing which resource ceiling rejected the sample.
| Enumerator | Meaning |
|---|---|
kNotRejected | placeholder; sample was not rejected |
kRejectedByInstancesLimit | max_instances exhausted |
kRejectedBySamplesLimit | max_samples exhausted |
kRejectedBySamplesPerInstanceLimit | max_samples_per_instance exhausted |
|
overridevirtual |
|
overridevirtual |
|
friend |
Streams the counter and reason fields to ostream.
| ostream | Output stream. |
| status | Event to print. |
ostream. | InstanceHandle vlink::Status::SampleRejected::last_instance_handle {nullptr} |
Opaque handle of the rejected instance.
| Kind vlink::Status::SampleRejected::last_reason {kNotRejected} |
Reason code for the most recent rejection.
| int32_t vlink::Status::SampleRejected::total_count {0} |
Cumulative samples rejected.
| int32_t vlink::Status::SampleRejected::total_count_change {0} |
Delta in total_count since the last notification.