10Duke Scale C++ Client
Loading...
Searching...
No Matches
MutableLeases.h
1#ifndef TENDUKE_SE_LICENSING_MUTABLELEASES_H
2#define TENDUKE_SE_LICENSING_MUTABLELEASES_H
3
4#include "./Lease.h"
5#include "./Leases.h"
6
7#include <string>
8
9namespace tenduke { namespace se { namespace licensing {
10
15{
16public:
21 virtual void addLease(const ::tenduke::se::licensing::Lease &lease) = 0;
22
26 virtual void removeAll() = 0;
27
35 virtual void removeLease(const ::tenduke::se::licensing::Lease &lease) = 0;
36
41 virtual void removeLease(const std::string &leaseId) = 0;
42
49 virtual void mergeLeases(const std::vector<::tenduke::se::licensing::Lease> &leases) = 0;
50};
51
52}}}
53
54#endif //TENDUKE_SE_LICENSING_MUTABLELEASES_H
A read-only lease-cache service.
Definition Leases.h:23
Service, which extends the readonly cache tenduke::se::licensing::Leases with maintenance operations.
Definition MutableLeases.h:15
virtual void removeLease(const std::string &leaseId)=0
Removes lease from the cache by lease id.
virtual void mergeLeases(const std::vector<::tenduke::se::licensing::Lease > &leases)=0
Merges given leases to the cache.
virtual void removeAll()=0
Removes all leases from the cache.
virtual void addLease(const ::tenduke::se::licensing::Lease &lease)=0
Adds a lease to the cache.
virtual void removeLease(const ::tenduke::se::licensing::Lease &lease)=0
Removes given lease from the cache.
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7