| Fast DDS Version 3.3.0 Fast DDS

Loading...
Searching...
No Matches
SampleRejectedStatus.hpp
1// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima).
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
18
19#ifndef FASTDDS_DDS_CORE_STATUS__SAMPLEREJECTEDSTATUS_HPP
20#define FASTDDS_DDS_CORE_STATUS__SAMPLEREJECTEDSTATUS_HPP
21
22#include <cstdint>
23
24#include <fastdds/dds/common/InstanceHandle.hpp>
25
26 namespace eprosima {
27 namespace fastdds {
28 namespace dds {
29
31 enum SampleRejectedStatusKind
32{
34 NOT_REJECTED,
36 REJECTED_BY_INSTANCES_LIMIT,
38 REJECTED_BY_SAMPLES_LIMIT,
40 REJECTED_BY_SAMPLES_PER_INSTANCE_LIMIT
41};
42
44 struct SampleRejectedStatus
45{
49 uint32_t total_count = 0;
50
54 uint32_t total_count_change = 0;
55
60 SampleRejectedStatusKind last_reason = NOT_REJECTED;
61
65 InstanceHandle_t last_instance_handle;
66};
67
68} //namespace dds
69} //namespace fastdds
70} //namespace eprosima
71
72#endif // FASTDDS_DDS_CORE_STATUS__SAMPLEREJECTEDSTATUS_HPP
eprosima::fastdds::dds
Definition BuiltinTopicKey.hpp:26
eprosima::fastdds::dds::SampleRejectedStatusKind
SampleRejectedStatusKind
An enum with the possible values for the sample rejected reason.
Definition SampleRejectedStatus.hpp:32
eprosima::fastdds::dds::NOT_REJECTED
@ NOT_REJECTED
Default value.
Definition SampleRejectedStatus.hpp:34
eprosima::fastdds::dds::REJECTED_BY_SAMPLES_PER_INSTANCE_LIMIT
@ REJECTED_BY_SAMPLES_PER_INSTANCE_LIMIT
Exceeds the max_samples_per_instance limit.
Definition SampleRejectedStatus.hpp:40
eprosima::fastdds::dds::REJECTED_BY_INSTANCES_LIMIT
@ REJECTED_BY_INSTANCES_LIMIT
Exceeds the max_instance limit.
Definition SampleRejectedStatus.hpp:36
eprosima::fastdds::dds::REJECTED_BY_SAMPLES_LIMIT
@ REJECTED_BY_SAMPLES_LIMIT
Exceeds the max_samples limit.
Definition SampleRejectedStatus.hpp:38
eprosima::fastdds::dds::InstanceHandle_t
eprosima::fastdds::rtps::InstanceHandle_t InstanceHandle_t
Definition InstanceHandle.hpp:31
eprosima::fastdds
eprosima
eProsima namespace.
eprosima::fastdds::dds::SampleRejectedStatus
A struct storing the sample rejected status.
Definition SampleRejectedStatus.hpp:45
eprosima::fastdds::dds::SampleRejectedStatus::last_reason
SampleRejectedStatusKind last_reason
Reason for rejecting the last sample rejected.
Definition SampleRejectedStatus.hpp:60
eprosima::fastdds::dds::SampleRejectedStatus::total_count
uint32_t total_count
Total cumulative count of samples rejected by the DataReader.
Definition SampleRejectedStatus.hpp:49
eprosima::fastdds::dds::SampleRejectedStatus::total_count_change
uint32_t total_count_change
The incremental number of samples rejected since the last time the listener was called or the status ...
Definition SampleRejectedStatus.hpp:54
eprosima::fastdds::dds::SampleRejectedStatus::last_instance_handle
InstanceHandle_t last_instance_handle
Handle to the instance being updated by the last sample that was rejected.
Definition SampleRejectedStatus.hpp:65