cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
Loading...
Searching...
No Matches
msgpack_rpc::clients::impl::IClientImpl Class Referenceabstract

Interface of internal implementation of clients. More...

#include <msgpack_rpc/clients/impl/i_client_impl.h>

Inheritance diagram for msgpack_rpc::clients::impl::IClientImpl:
Collaboration diagram for msgpack_rpc::clients::impl::IClientImpl:

Public Member Functions

 IClientImpl (const IClientImpl &)=delete
 IClientImpl (IClientImpl &&)=delete
virtual ~IClientImpl () noexcept=default
 Destructor.
virtual std::shared_ptr< ICallFutureImplasync_call (messages::MethodNameView method_name, const IParametersSerializer &parameters)=0
 Asynchronously call a method.
virtual std::shared_ptr< executors::IExecutorexecutor ()=0
 Get the executor.
virtual void notify (messages::MethodNameView method_name, const IParametersSerializer &parameters)=0
 Notify to a method.
IClientImploperator= (const IClientImpl &)=delete
IClientImploperator= (IClientImpl &&)=delete
virtual void stop ()=0
 Stop processing of this client.

Protected Member Functions

 IClientImpl () noexcept=default
 Constructor.

Detailed Description

Interface of internal implementation of clients.

Definition at line 34 of file i_client_impl.h.

Member Function Documentation

◆ async_call()

virtual std::shared_ptr< ICallFutureImpl > msgpack_rpc::clients::impl::IClientImpl::async_call ( messages::MethodNameView method_name,
const IParametersSerializer & parameters )
nodiscardpure virtual

Asynchronously call a method.

Parameters
[in]method_nameName of the method.
[in]parametersParameters.
Returns
Future object to wait the result of the call.

Implemented in msgpack_rpc::clients::impl::ClientImpl.

◆ executor()

virtual std::shared_ptr< executors::IExecutor > msgpack_rpc::clients::impl::IClientImpl::executor ( )
nodiscardpure virtual

Get the executor.

Returns
Executor.
Note
This function is mainly for testing. So this function may be removed in the future.

Implemented in msgpack_rpc::clients::impl::ClientImpl.

◆ notify()

virtual void msgpack_rpc::clients::impl::IClientImpl::notify ( messages::MethodNameView method_name,
const IParametersSerializer & parameters )
pure virtual

Notify to a method.

Parameters
[in]method_nameName of the method.
[in]parametersParameters.
Note
Notifications are always processed asynchronously because a notification doesn't have a response.

Implemented in msgpack_rpc::clients::impl::ClientImpl.

◆ stop()

virtual void msgpack_rpc::clients::impl::IClientImpl::stop ( )
pure virtual

Stop processing of this client.

Implemented in msgpack_rpc::clients::impl::ClientImpl.


The documentation for this class was generated from the following file: