MCPcopy Create free account
hub / github.com/grpc/grpc-java / setPort

Method setPort

api/src/main/java/io/grpc/Uri.java:972–976  ·  view source on GitHub ↗

Specifies the "port" component of the new URI, e.g. "8080". The port can be any non-negative integer. A negative value represents "no port". This field is optional. @param port the new "port" component, or -1 to clear this field @return this, for fluent building

(int port)

Source from the content-addressed store, hash-verified

970 * @return this, for fluent building
971 */
972 @CanIgnoreReturnValue
973 public Builder setPort(int port) {
974 this.port = port < 0 ? null : Integer.toString(port);
975 return this;
976 }
977
978 @CanIgnoreReturnValue
979 Builder setRawPort(String port) {

Callers 15

setRawAuthorityMethod · 0.95
buildLbResponseMethod · 0.80
toAddress_inetMethod · 0.80
toAddressMethod · 0.80
builder_numericPortMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80

Calls 1

toStringMethod · 0.45