Package alluxio.grpc
Class DataMessageMarshallerProvider<ReqT,ResT>
- java.lang.Object
-
- alluxio.grpc.DataMessageMarshallerProvider<ReqT,ResT>
-
- Type Parameters:
ReqT
- type of the request messageResT
- type of the response message
public class DataMessageMarshallerProvider<ReqT,ResT> extends java.lang.Object
A provider ofDataMessageMarshaller
for a gRPC call.
-
-
Constructor Summary
Constructors Constructor Description DataMessageMarshallerProvider(DataMessageMarshaller<ReqT> requestMarshaller, DataMessageMarshaller<ResT> responseMarshaller)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<DataMessageMarshaller<ReqT>>
getRequestMarshaller()
java.util.Optional<DataMessageMarshaller<ResT>>
getResponseMarshaller()
-
-
-
Constructor Detail
-
DataMessageMarshallerProvider
public DataMessageMarshallerProvider(@Nullable DataMessageMarshaller<ReqT> requestMarshaller, @Nullable DataMessageMarshaller<ResT> responseMarshaller)
- Parameters:
requestMarshaller
- the marshaller for the request, or null if not providedresponseMarshaller
- the marshaller for the response, or null if not provided
-
-
Method Detail
-
getRequestMarshaller
public java.util.Optional<DataMessageMarshaller<ReqT>> getRequestMarshaller()
- Returns:
- the request marshaller
-
getResponseMarshaller
public java.util.Optional<DataMessageMarshaller<ResT>> getResponseMarshaller()
- Returns:
- the response marshaller
-
-