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>,Response extends PMessage<Response>>
PServiceCall<Response>handleCall(PServiceCall<Request> call, PService service)
Handle a service call.
-
-
-
Method Detail
-
handleCall
@Nullable <Request extends PMessage<Request>,Response extends PMessage<Response>> PServiceCall<Response> handleCall(PServiceCall<Request> call, PService service) throws java.io.IOException
Handle a service call.- Type Parameters:
Request
- Request type.Response
- 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.
-
-