Fast DDS  Version 3.6.1.0
Fast DDS
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 
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 
32 {
43 };
44 
47 {
51  uint32_t total_count = 0;
52 
56  uint32_t total_count_change = 0;
57 
63 
68 };
69 
70 } //namespace dds
71 } //namespace fastdds
72 } //namespace eprosima
73 
74 #endif // FASTDDS_DDS_CORE_STATUS__SAMPLEREJECTEDSTATUS_HPP
Definition: DomainParticipant.hpp:46
SampleRejectedStatusKind
An enum with the possible values for the sample rejected reason.
Definition: SampleRejectedStatus.hpp:32
@ REJECTED_BY_UNKNOWN_INSTANCE
Instance could not be determined.
Definition: SampleRejectedStatus.hpp:42
@ NOT_REJECTED
Default value.
Definition: SampleRejectedStatus.hpp:34
@ REJECTED_BY_SAMPLES_PER_INSTANCE_LIMIT
Exceeds the max_samples_per_instance limit.
Definition: SampleRejectedStatus.hpp:40
@ REJECTED_BY_INSTANCES_LIMIT
Exceeds the max_instance limit.
Definition: SampleRejectedStatus.hpp:36
@ REJECTED_BY_SAMPLES_LIMIT
Exceeds the max_samples limit.
Definition: SampleRejectedStatus.hpp:38
A struct storing the sample rejected status.
Definition: SampleRejectedStatus.hpp:47
SampleRejectedStatusKind last_reason
Reason for rejecting the last sample rejected.
Definition: SampleRejectedStatus.hpp:62
uint32_t total_count
Total cumulative count of samples rejected by the DataReader.
Definition: SampleRejectedStatus.hpp:51
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:56
InstanceHandle_t last_instance_handle
Handle to the instance being updated by the last sample that was rejected.
Definition: SampleRejectedStatus.hpp:67
Struct InstanceHandle_t, used to contain the key for WITH_KEY topics.
Definition: InstanceHandle.hpp:154