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

Method create

api/src/main/java/io/grpc/MethodDescriptor.java:206–213  ·  view source on GitHub ↗

Creates a new MethodDescriptor. @param type the call type of this method @param fullMethodName the fully qualified name of this method @param requestMarshaller the marshaller used to encode and decode requests @param responseMarshaller the marshaller used to encode and decode responses @sin

(
      MethodType type, String fullMethodName,
      Marshaller<RequestT> requestMarshaller,
      Marshaller<ResponseT> responseMarshaller)

Source from the content-addressed store, hash-verified

204 * @deprecated use {@link #newBuilder()}.
205 */
206 @Deprecated
207 public static <RequestT, ResponseT> MethodDescriptor<RequestT, ResponseT> create(
208 MethodType type, String fullMethodName,
209 Marshaller<RequestT> requestMarshaller,
210 Marshaller<ResponseT> responseMarshaller) {
211 return new MethodDescriptor<>(
212 type, fullMethodName, requestMarshaller, responseMarshaller, null, false, false, false);
213 }
214
215 private MethodDescriptor(
216 MethodType type,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected