ResourceQuota represents a bound on memory usage by the gRPC library.
More...
#include <resource_quota.h>
ResourceQuota represents a bound on memory usage by the gRPC library.
A ResourceQuota can be attached to a server (via ServerBuilder), or a client channel (via ChannelArguments). gRPC will attempt to keep memory used by all attached entities below the ResourceQuota bound.
◆ ResourceQuota() [1/2]
| grpc::ResourceQuota::ResourceQuota |
( |
const grpc::string & |
name | ) |
|
|
explicit |
◆ ResourceQuota() [2/2]
| grpc::ResourceQuota::ResourceQuota |
( |
| ) |
|
◆ ~ResourceQuota()
| grpc::ResourceQuota::~ResourceQuota |
( |
| ) |
|
◆ c_resource_quota()
◆ Resize()
Resize this ResourceQuota to a new size.
If new_size is smaller than the current size of the pool, memory usage will be monotonically decreased until it falls under new_size. No time bound is given for this to occur however.
The documentation for this class was generated from the following file: