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.
|
||||
* @return the builder to facilitate chaining.
|
||||
*/
|
||||
public final CronetChannelBuilder setTrafficStatsTag(int tag) {
|
||||
final CronetChannelBuilder setTrafficStatsTag(int tag) {
|
||||
trafficStatsTagSet = true;
|
||||
trafficStatsTag = tag;
|
||||
return this;
|
||||
|
|
@ -157,7 +157,7 @@ public final class CronetChannelBuilder extends
|
|||
* @param uid the UID to attribute socket traffic caused by this channel.
|
||||
* @return the builder to facilitate chaining.
|
||||
*/
|
||||
public final CronetChannelBuilder setTrafficStatsUid(int uid) {
|
||||
final CronetChannelBuilder setTrafficStatsUid(int uid) {
|
||||
trafficStatsUidSet = true;
|
||||
trafficStatsUid = uid;
|
||||
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.
|
||||
*/
|
||||
@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
|
||||
|
|
|
|||
Loading…
Reference in New Issue