Fast DDS  Version 3.3.0
Fast DDS
Loading...
Searching...
No Matches
RpcServerSchedulingStrategy.hpp
1// Copyright 2025 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_RPC_INTERFACES__RPCSERVERSCHEDULINGSTRATEGY_HPP
20#define FASTDDS_DDS_RPC_INTERFACES__RPCSERVERSCHEDULINGSTRATEGY_HPP
21
22#include <memory>
23
24namespace eprosima {
25namespace fastdds {
26namespace dds {
27namespace rpc {
28
29class RpcRequest;
30class RpcServer;
31
36{
37public:
38
42 virtual ~RpcServerSchedulingStrategy() noexcept = default;
43
56 virtual void schedule_request(
57 const std::shared_ptr<RpcRequest>& request,
58 const std::shared_ptr<RpcServer>& server) = 0;
59
65 virtual void server_stopped(
66 const std::shared_ptr<RpcServer>& server) = 0;
67
68};
69
70} // namespace rpc
71} // namespace dds
72} // namespace fastdds
73} // namespace eprosima
74
75#endif // FASTDDS_DDS_RPC_INTERFACES__RPCSERVERSCHEDULINGSTRATEGY_HPP
An interface with generic RPC requests functionality.
Definition RpcRequest.hpp:34
An interface with generic RPC server functionality.
Definition RpcServer.hpp:36
An interface with generic RPC requests functionality.
Definition RpcServerSchedulingStrategy.hpp:36
virtual ~RpcServerSchedulingStrategy() noexcept=default
Destructor.
virtual void server_stopped(const std::shared_ptr< RpcServer > &server)=0
Informs that a server has been stopped and all its requests have been cancelled.
virtual void schedule_request(const std::shared_ptr< RpcRequest > &request, const std::shared_ptr< RpcServer > &server)=0
Schedule a request for processing.
Definition DomainParticipant.hpp:46
eProsima namespace.
Definition EntityId_t.hpp:388