Package io.servicetalk.grpc.api
Interface ParameterDescriptor<T>
- Type Parameters:
T
- The type of the parameter.
public interface ParameterDescriptor<T>
Description of a parameter or return value related to a
MethodDescriptor
.-
Method Summary
Modifier and TypeMethodDescriptionboolean
isAsync()
Determine if the parameter type is asynchronous.boolean
Determine if the parameter type is streaming or scalar.Get the javaClass
for the parameter type.Get theSerializerDescriptor
for this parameter.
-
Method Details
-
isStreaming
boolean isStreaming()Determine if the parameter type is streaming or scalar.- Returns:
true
if the parameter is streaming.false
if the parameter is scalar.
-
isAsync
boolean isAsync()Determine if the parameter type is asynchronous.- Returns:
true
if the parameter type is asynchronous.false
if the parameter type is synchronous.
-
parameterClass
Get the javaClass
for the parameter type.- Returns:
- the java
Class
for the parameter type.
-
serializerDescriptor
SerializerDescriptor<T> serializerDescriptor()Get theSerializerDescriptor
for this parameter.- Returns:
- the
SerializerDescriptor
for this parameter.
-