RTC Toolkit 5.1.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
rtctk::componentFramework::Optimisable< Super >::BizLogicIf Class Reference

Business logic interface for Optimisable mixin. More...

#include <rtctk/componentFramework/optimisable.hpp>

Inheritance diagram for rtctk::componentFramework::Optimisable< Super >::BizLogicIf:

Public Member Functions

virtual void ActivityOptimising (StopToken st, const JsonPayload &arg)
 Activity executed in its own thread that performs the requested optimization.
 
virtual bool GuardOptimisingAllowed (const JsonPayload &arg)
 Determines if optimising is possible at this time with the provided argument.
 

Detailed Description

template<typename Super>
class rtctk::componentFramework::Optimisable< Super >::BizLogicIf

Business logic interface for Optimisable mixin.

Member Function Documentation

◆ ActivityOptimising()

template<typename Super >
virtual void rtctk::componentFramework::Optimisable< Super >::BizLogicIf::ActivityOptimising ( StopToken st,
const JsonPayload & arg )
inlinevirtual

Activity executed in its own thread that performs the requested optimization.

Parameters
stIndicates when activity is requested to stop.
argProvides arguments for the optimization to be performed.
Thread Safety
thread-safe – Method is invoked from unspecified thread and must be thread safe.
Exception Safety
basic – Method may throw exception. The exception message will returned to requestor.

◆ GuardOptimisingAllowed()

template<typename Super >
virtual bool rtctk::componentFramework::Optimisable< Super >::BizLogicIf::GuardOptimisingAllowed ( const JsonPayload & arg)
inlinevirtual

Determines if optimising is possible at this time with the provided argument.

Parameters
argProvided argument.
Returns
true if optimising is allowed.
false if optimising is disallowed. This results in the command being rejected.
Exception Safety
basic – Method may throw which will result in optimise request being rejected.

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