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

Method newStub

stub/src/main/java/io/grpc/stub/AbstractStub.java:114–117  ·  view source on GitHub ↗

Returns a new stub with the given channel for the provided method configurations. @since 1.26.0 @param factory the factory to create a stub @param channel the channel that this stub will use to do communications

(
      StubFactory<T> factory, Channel channel)

Source from the content-addressed store, hash-verified

112 * @param channel the channel that this stub will use to do communications
113 */
114 public static <T extends AbstractStub<T>> T newStub(
115 StubFactory<T> factory, Channel channel) {
116 return newStub(factory, channel, CallOptions.DEFAULT);
117 }
118
119 /**
120 * Returns a new stub with the given channel for the provided method configurations.

Callers

nothing calls this directly

Calls 1

newStubMethod · 0.65

Tested by

no test coverage detected