include/grpcpp/resource_quota.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2016 gRPC authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 #ifndef GRPCPP_RESOURCE_QUOTA_H
20 #define GRPCPP_RESOURCE_QUOTA_H
21 
22 struct grpc_resource_quota;
23 
26 
27 namespace grpc {
28 
34 class ResourceQuota final : private grpc::GrpcLibraryCodegen {
35  public:
37  explicit ResourceQuota(const std::string& name);
38  ResourceQuota();
39  ~ResourceQuota() override;
40 
45  ResourceQuota& Resize(size_t new_size);
46 
55  ResourceQuota& SetMaxThreads(int new_max_threads);
56 
58 
59  private:
60  ResourceQuota(const ResourceQuota& rhs);
62 
64 };
65 
66 } // namespace grpc
67 
68 #endif // GRPCPP_RESOURCE_QUOTA_H
grpc::ResourceQuota::operator=
ResourceQuota & operator=(const ResourceQuota &rhs)
grpc::ResourceQuota::c_resource_quota
grpc_resource_quota * c_resource_quota() const
Definition: include/grpcpp/resource_quota.h:57
grpc::ResourceQuota::ResourceQuota
ResourceQuota()
Definition: resource_quota_cc.cc:29
grpc::ResourceQuota::impl_
grpc_resource_quota *const impl_
Definition: include/grpcpp/resource_quota.h:63
grpc
Definition: grpcpp/alarm.h:33
grpc_resource_quota
struct grpc_resource_quota grpc_resource_quota
Definition: grpc_types.h:729
grpc::ResourceQuota::Resize
ResourceQuota & Resize(size_t new_size)
Definition: resource_quota_cc.cc:36
testing::internal::string
::std::string string
Definition: bloaty/third_party/protobuf/third_party/googletest/googletest/include/gtest/internal/gtest-port.h:881
binary_size.new_size
def new_size
Definition: binary_size.py:124
grpc::ResourceQuota
Definition: include/grpcpp/resource_quota.h:34
setup.name
name
Definition: setup.py:542
grpc::GrpcLibraryCodegen
Classes that require gRPC to be initialized should inherit from this class.
Definition: grpcpp/impl/codegen/grpc_library.h:40
config.h
grpc::ResourceQuota::SetMaxThreads
ResourceQuota & SetMaxThreads(int new_max_threads)
Definition: resource_quota_cc.cc:41
grpc_library.h
grpc::ResourceQuota::~ResourceQuota
~ResourceQuota() override
Definition: resource_quota_cc.cc:34


grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:04