ReqT
- type of the request messageResT
- type of the response messagepublic class DataMessageMarshallerProvider<ReqT,ResT> extends Object
DataMessageMarshaller
for a gRPC call.Constructor and Description |
---|
DataMessageMarshallerProvider(DataMessageMarshaller<ReqT> requestMarshaller,
DataMessageMarshaller<ResT> responseMarshaller) |
Modifier and Type | Method and Description |
---|---|
Optional<DataMessageMarshaller<ReqT>> |
getRequestMarshaller() |
Optional<DataMessageMarshaller<ResT>> |
getResponseMarshaller() |
public DataMessageMarshallerProvider(@Nullable DataMessageMarshaller<ReqT> requestMarshaller, @Nullable DataMessageMarshaller<ResT> responseMarshaller)
requestMarshaller
- the marshaller for the request, or null if not providedresponseMarshaller
- the marshaller for the response, or null if not providedpublic Optional<DataMessageMarshaller<ReqT>> getRequestMarshaller()
public Optional<DataMessageMarshaller<ResT>> getResponseMarshaller()
Copyright © 2023. All Rights Reserved.