Package net.morimekta.providence
Interface PServiceCallHandler
-
- All Known Subinterfaces:
PProcessor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface PServiceCallHandler
Interface for handling a call request from a synchronous client.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <Request extends PMessage<Request,RequestField>,Response extends PMessage<Response,ResponseField>,RequestField extends PField,ResponseField extends PField>
PServiceCall<Response,ResponseField>handleCall(PServiceCall<Request,RequestField> call, PService service)
Handle a service call.
-
-
-
Method Detail
-
handleCall
@Nullable <Request extends PMessage<Request,RequestField>,Response extends PMessage<Response,ResponseField>,RequestField extends PField,ResponseField extends PField> PServiceCall<Response,ResponseField> handleCall(PServiceCall<Request,RequestField> call, PService service) throws java.io.IOException
Handle a service call.- Type Parameters:
Request
- Request type.Response
- Response type.RequestField
- Request type.ResponseField
- Response type.- Parameters:
call
- The request call.service
- The service to be handled.- Returns:
- The response service call object, or null if none (e.g. oneway).
- Throws:
java.io.IOException
- On read or write failure.SerializerException
- On serialization problems.
-
-