@Test public void toSocketOptionTimeout() { assertEquals( sockOptTimeout200ms, ChannelzProtoUtil.toSocketOptionTimeout("SO_TIMEOUT", 200)); }
static SocketOption toSocketOptionTimeout(String name, int timeoutMillis) { Preconditions.checkNotNull(name); return SocketOption .newBuilder() .setName(name) .setAdditional( Any.pack( SocketOptionTimeout .newBuilder() .setDuration(Durations.fromMillis(timeoutMillis)) .build())) .build(); }
ChannelzProtoUtil { static SocketOption toSocketOptionTimeout(String name, int timeoutMillis) { Preconditions.checkNotNull(name); return SocketOption .newBuilder() .setName(name) .setAdditional( Any.pack( SocketOptionTimeout .newBuilder() .setDuration(Durations.fromMillis(timeoutMillis)) .build())) .build(); } }
ChannelzProtoUtil { static SocketOption toSocketOptionTimeout(String name, int timeoutMillis) { Preconditions.checkNotNull(name); return SocketOption .newBuilder() .setName(name) .setAdditional( Any.pack( SocketOptionTimeout .newBuilder() .setDuration(Durations.fromMillis(timeoutMillis)) .build())) .build(); } private  ChannelzProtoUtil(); }
ChannelzProtoUtil { static SocketOption toSocketOptionTimeout(String name, int timeoutMillis) { Preconditions.checkNotNull(name); return SocketOption .newBuilder() .setName(name) .setAdditional( Any.pack( SocketOptionTimeout .newBuilder() .setDuration(Durations.fromMillis(timeoutMillis)) .build())) .build(); } private  ChannelzProtoUtil();  }
ChannelzProtoUtil { static SocketOption toSocketOptionTimeout(String name, int timeoutMillis) { Preconditions.checkNotNull(name); return SocketOption .newBuilder() .setName(name) .setAdditional( Any.pack( SocketOptionTimeout .newBuilder() .setDuration(Durations.fromMillis(timeoutMillis)) .build())) .build(); } private  ChannelzProtoUtil();  static final String SO_LINGER; static final String SO_TIMEOUT; static final String TCP_INFO; }