Interface MethodHandlerSupplier
- All Known Implementing Classes:
- BidirectionalMethodHandlerSupplier,- ClientStreamingMethodHandlerSupplier,- ServerStreamingMethodHandlerSupplier,- UnaryMethodHandlerSupplier
public interface MethodHandlerSupplier
A supplier of 
MethodHandlers for AnnotatedMethods.
 
 Implementation classes may be annotated with Priority
 to influence their priority order when determining which supplier is used if
 more than one supplier is able to supply a handler for a method.
 The built-in default suppliers have a priority of zero, which is also the default
 priority for classes that are not annotated.
- 
Method SummaryModifier and TypeMethodDescription<ReqT,RespT> 
 MethodHandler<ReqT,RespT> get(String methodName, AnnotatedMethod method, Supplier<?> instance) Supply aMethodHandlerfor a method.booleansupplies(AnnotatedMethod method) Determine whether thisMethodHandlerSuppliercan supply aMethodHandlerfor a given method and type.
- 
Method Details- 
suppliesDetermine whether thisMethodHandlerSuppliercan supply aMethodHandlerfor a given method and type.- Parameters:
- method- the- AnnotatedMethodto supply a handler for
- Returns:
- trueif this supplier can supply a handler for the method
 
- 
get<ReqT,RespT> MethodHandler<ReqT,RespT> get(String methodName, AnnotatedMethod method, Supplier<?> instance) Supply aMethodHandlerfor a method.- Type Parameters:
- ReqT- the request type
- RespT- the response type
- Parameters:
- methodName- the gRPC method name
- method- the method to supply a- MethodHandlerfor
- instance- the supplier to supply the actual call handler
- Returns:
- a MethodHandlerfor the method
- Throws:
- NullPointerException- if the method is null
 
 
-