VLink  2.0.0
A high-performance communication middleware
vlink::Status::SampleRejected结构体 参考final

Reader-side event raised when an inbound sample is dropped due to a resource limit. 更多...

#include <status_detail.h>

类 vlink::Status::SampleRejected 继承关系图:
vlink::Status::SampleRejected 的协作图:

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 属性

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. 更多...
 

额外继承的成员函数

详细描述

Reader-side event raised when an inbound sample is dropped due to a resource limit.

成员枚举类型说明

◆ Kind

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
枚举值
kNotRejected 

Placeholder reason; no rejection occurred.

kRejectedByInstancesLimit 

Reader exhausted its instance budget.

kRejectedBySamplesLimit 

Reader exhausted its total-sample budget.

kRejectedBySamplesPerInstanceLimit 

Reader exhausted its per-instance budget.

成员函数说明

◆ get_string()

std::string vlink::Status::SampleRejected::get_string ( ) const
overridevirtual

Returns the literal "SampleRejected".

返回
Event name string.

实现了 vlink::Status::Base.

◆ get_type()

Type vlink::Status::SampleRejected::get_type ( ) const
overridevirtual

Returns kSampleRejected.

返回
Status type discriminator.

实现了 vlink::Status::Base.

友元及相关函数文档

◆ operator<<

VLINK_EXPORT friend std::ostream& operator<< ( std::ostream &  ostream,
const SampleRejected status 
)
friend

Streams the counter and reason fields to ostream.

参数
ostreamOutput stream.
statusEvent to print.
返回
Reference to ostream.

类成员变量说明

◆ last_instance_handle

InstanceHandle vlink::Status::SampleRejected::last_instance_handle {nullptr}

Opaque handle of the rejected instance.

◆ last_reason

Kind vlink::Status::SampleRejected::last_reason {kNotRejected}

Reason code for the most recent rejection.

◆ total_count

int32_t vlink::Status::SampleRejected::total_count {0}

Cumulative samples rejected.

◆ total_count_change

int32_t vlink::Status::SampleRejected::total_count_change {0}

Delta in total_count since the last notification.


该结构体的文档由以下文件生成: