mirror of https://github.com/grpc/grpc-java.git
cronet: do not expose setTrafficStats* as public APIs (#6055)
This commit is contained in:
parent
503696aa9a
commit
d2307139c8
|
|
@ -136,7 +136,7 @@ public final class CronetChannelBuilder extends
|
||||||
* application.
|
* application.
|
||||||
* @return the builder to facilitate chaining.
|
* @return the builder to facilitate chaining.
|
||||||
*/
|
*/
|
||||||
public final CronetChannelBuilder setTrafficStatsTag(int tag) {
|
final CronetChannelBuilder setTrafficStatsTag(int tag) {
|
||||||
trafficStatsTagSet = true;
|
trafficStatsTagSet = true;
|
||||||
trafficStatsTag = tag;
|
trafficStatsTag = tag;
|
||||||
return this;
|
return this;
|
||||||
|
|
@ -157,7 +157,7 @@ public final class CronetChannelBuilder extends
|
||||||
* @param uid the UID to attribute socket traffic caused by this channel.
|
* @param uid the UID to attribute socket traffic caused by this channel.
|
||||||
* @return the builder to facilitate chaining.
|
* @return the builder to facilitate chaining.
|
||||||
*/
|
*/
|
||||||
public final CronetChannelBuilder setTrafficStatsUid(int uid) {
|
final CronetChannelBuilder setTrafficStatsUid(int uid) {
|
||||||
trafficStatsUidSet = true;
|
trafficStatsUidSet = true;
|
||||||
trafficStatsUid = uid;
|
trafficStatsUid = uid;
|
||||||
return this;
|
return this;
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,10 @@ import io.grpc.Internal;
|
||||||
* team. If you *really* think you need to use this, contact the gRPC team first.
|
* team. If you *really* think you need to use this, contact the gRPC team first.
|
||||||
*/
|
*/
|
||||||
@Internal
|
@Internal
|
||||||
public class InternalCronetChannelBuilder {
|
public final class InternalCronetChannelBuilder {
|
||||||
|
|
||||||
|
// Prevent instantiation
|
||||||
|
private InternalCronetChannelBuilder() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets {@link android.net.TrafficStats} tag to use when accounting socket traffic caused by this
|
* Sets {@link android.net.TrafficStats} tag to use when accounting socket traffic caused by this
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue