VLink 2.0.0
A high-performance communication middleware
载入中...
搜索中...
未找到
vlink::Status::SampleRejected结构体 参考final

Status event fired when an incoming sample is rejected 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 for sample rejection. 更多...

Public 成员函数

Type get_type () const override
 Returns kSampleRejected.
std::string get_string () const override
 Returns a human-readable summary of this status.

Public 属性

int32_t total_count {0}
 Total number of samples rejected.
int32_t total_count_change {0}
 Change in total_count since last callback.
Kind last_reason {kNotRejected}
 Reason for the most recent rejection.
InstanceHandle last_instance_handle {nullptr}
 Handle of the instance that was most recently rejected.

友元

VLINK_EXPORT friend std::ostream & operator<< (std::ostream &ostream, const SampleRejected &status) noexcept
 Writes the status fields to ostream.

额外继承的成员函数

详细描述

Status event fired when an incoming sample is rejected due to a resource limit.

The Kind enum identifies which resource limit caused the rejection. last_reason and last_instance_handle describe the most recent rejection.

成员枚举类型说明

◆ Kind

Reason codes for sample rejection.

Kind Limit exceeded
kNotRejected Sample was not rejected
kRejectedByInstancesLimit Max instances limit reached
kRejectedBySamplesLimit Max total samples limit reached
kRejectedBySamplesPerInstanceLimit Max samples per instance reached
枚举值
kNotRejected 

No rejection.

kRejectedByInstancesLimit 

Max instances limit exceeded.

kRejectedBySamplesLimit 

Max total samples limit exceeded.

kRejectedBySamplesPerInstanceLimit 

Max samples per instance limit exceeded.

成员函数说明

◆ get_string()

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

Returns a human-readable summary of this status.

返回
String describing rejection counts and last rejection reason.

实现了 vlink::Status::Base.

◆ get_type()

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

Returns kSampleRejected.

返回
Status type identifier.

实现了 vlink::Status::Base.

◆ operator<<

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

Writes the status fields to ostream.

参数
ostreamOutput stream.
statusThis SampleRejected status.
返回
Reference to ostream.

类成员变量说明

◆ last_instance_handle

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

Handle of the instance that was most recently rejected.

◆ last_reason

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

Reason for the most recent rejection.

◆ total_count

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

Total number of samples rejected.

◆ total_count_change

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

Change in total_count since last callback.


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