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

Method forPort

api/src/main/java/io/grpc/ServerBuilder.java:43–45  ·  view source on GitHub ↗

Static factory for creating a new ServerBuilder. @param port the port to listen on @since 1.0.0

(int port)

Source from the content-addressed store, hash-verified

41 * @since 1.0.0
42 */
43 public static ServerBuilder<?> forPort(int port) {
44 return ServerProvider.provider().builderForPort(port);
45 }
46
47 /**
48 * Execute application code directly in the transport thread.

Callers 15

setUpMethod · 0.95
setUpMethod · 0.95
setUpMethod · 0.95
createPlaintextServerMethod · 0.95
runMethod · 0.95
runMethod · 0.95
runMethod · 0.95
runMethod · 0.95
runMethod · 0.95
compressionMethod · 0.95
startMetricsServiceMethod · 0.95

Calls 2

providerMethod · 0.95
builderForPortMethod · 0.45

Tested by 11

setUpMethod · 0.76
setUpMethod · 0.76
setUpMethod · 0.76
createPlaintextServerMethod · 0.76
runMethod · 0.76
runMethod · 0.76
runMethod · 0.76
runMethod · 0.76
runMethod · 0.76
compressionMethod · 0.76
startMetricsServiceMethod · 0.76