10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::se::licensing::HeartbeatRequest< R > Class Template Reference

#include <HeartbeatRequest.h>

Detailed Description

template<class R>
class tenduke::se::licensing::HeartbeatRequest< R >

High level heartbeat-request.

Used internally.

Template Parameters
Rtype of the response
Inheritance diagram for tenduke::se::licensing::HeartbeatRequest< R >:
tenduke::se::licensing::BaseRequest< R >

Public Member Functions

 HeartbeatRequest (const std::shared_ptr<::tenduke::se::APIRequest< R > > &request, const std::shared_ptr<::tenduke::se::licensing::MutableLeases > &leases, const std::shared_ptr<::tenduke::oidc::OIDCSession > &oidc=nullptr)
 Constructs new instance.
 
- Public Member Functions inherited from tenduke::se::licensing::BaseRequest< R >
 BaseRequest (const std::shared_ptr<::tenduke::se::APIRequest< R > > &request, const std::shared_ptr<::tenduke::se::licensing::MutableLeases > &leases, const std::shared_ptr<::tenduke::oidc::OIDCSession > &oidc=nullptr)
 Constructs new instance.
 
virtual R execute ()
 Executes the request.
 

Protected Member Functions

void maintainLeases (const R &response) override
 Performs lease-cache maintenance.
 
- Protected Member Functions inherited from tenduke::se::licensing::BaseRequest< R >
virtual R executeRequest ()
 Executes the request.
 

Additional Inherited Members

- Protected Attributes inherited from tenduke::se::licensing::BaseRequest< R >
const std::shared_ptr<::tenduke::se::licensing::MutableLeasesleases
 The lease cache.
 

Constructor & Destructor Documentation

◆ HeartbeatRequest()

template<class R >
tenduke::se::licensing::HeartbeatRequest< R >::HeartbeatRequest ( const std::shared_ptr<::tenduke::se::APIRequest< R > > &  request,
const std::shared_ptr<::tenduke::se::licensing::MutableLeases > &  leases,
const std::shared_ptr<::tenduke::oidc::OIDCSession > &  oidc = nullptr 
)
inline

Constructs new instance.

Parameters
requestthe actual API-request
leaseslease cache
oidcOIDC-session service

Member Function Documentation

◆ maintainLeases()

template<class R >
void tenduke::se::licensing::HeartbeatRequest< R >::maintainLeases ( const R response)
inlineoverrideprotectedvirtual

Performs lease-cache maintenance.

This is empty method for subclasses to implement.

Parameters
response-

Reimplemented from tenduke::se::licensing::BaseRequest< R >.


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