diff options
author | murgatroid99 <mlumish@google.com> | 2016-11-03 15:13:28 -0700 |
---|---|---|
committer | murgatroid99 <mlumish@google.com> | 2016-11-03 15:13:28 -0700 |
commit | da29be5ecef07781ef2cfa743300f971df05af76 (patch) | |
tree | c81505d75cb3f5acd947654c9d3cfebbbadf831f /include/grpc++/support | |
parent | 8626db29c479c39b161451d2d6860b53d9ba9d78 (diff) | |
parent | c0072b07d5f6e171f54246c0b1e5e1a4d59b8685 (diff) |
Merge branch 'master' into node_electron_build
Diffstat (limited to 'include/grpc++/support')
-rw-r--r-- | include/grpc++/support/byte_buffer.h | 2 | ||||
-rw-r--r-- | include/grpc++/support/channel_arguments.h | 5 | ||||
-rw-r--r-- | include/grpc++/support/slice.h | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/include/grpc++/support/byte_buffer.h b/include/grpc++/support/byte_buffer.h index 06f8969b70..1f317df663 100644 --- a/include/grpc++/support/byte_buffer.h +++ b/include/grpc++/support/byte_buffer.h @@ -47,7 +47,7 @@ namespace grpc { /// A sequence of bytes. -class ByteBuffer GRPC_FINAL { +class ByteBuffer final { public: /// Constuct an empty buffer. ByteBuffer() : buffer_(nullptr) {} diff --git a/include/grpc++/support/channel_arguments.h b/include/grpc++/support/channel_arguments.h index ba203f85bd..49a3e9461c 100644 --- a/include/grpc++/support/channel_arguments.h +++ b/include/grpc++/support/channel_arguments.h @@ -85,6 +85,11 @@ class ChannelArguments { /// The given buffer pool will be attached to the constructed channel void SetResourceQuota(const ResourceQuota& resource_quota); + /// Set LB policy name. + /// Note that if the name resolver returns only balancer addresses, the + /// grpclb LB policy will be used, regardless of what is specified here. + void SetLoadBalancingPolicyName(const grpc::string& lb_policy_name); + // Generic channel argument setters. Only for advanced use cases. /// Set an integer argument \a value under \a key. void SetInt(const grpc::string& key, int value); diff --git a/include/grpc++/support/slice.h b/include/grpc++/support/slice.h index 5874b4f5ae..85561f7f33 100644 --- a/include/grpc++/support/slice.h +++ b/include/grpc++/support/slice.h @@ -44,7 +44,7 @@ namespace grpc { /// A slice represents a contiguous reference counted array of bytes. /// It is cheap to take references to a slice, and it is cheap to create a /// slice pointing to a subset of another slice. -class Slice GRPC_FINAL { +class Slice final { public: /// Construct an empty slice. Slice(); |