Interface PartialResultService<Context,​Result,​Chunked extends ChunkedRequestContext<Context,​Result>>

    • Method Detail

      • handle

        default @Nullable Map<@NonNull Context,​@NonNull Resulthandle​(@NonNull Chunked context)
        Description copied from interface: Service
        Provide a response for the given context. If the service implementation cannot provide a response for the given context, it should return null
        Specified by:
        handle in interface Service<Context,​Result>
        Parameters:
        context - Context used in the generation of the response
        Returns:
        Response. If the response isn't null, the next service in the service chain will get to act on the context. Otherwise the execution halts, and the provided response is the final response.