Interface SyncRequestHandler

All Superinterfaces:
RequestHandler
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 SyncRequestHandler extends RequestHandler
  • Method Summary

    Modifier and Type
    Method
    Description
    default CompletionStage<com.leakyabstractions.result.api.Result<org.bson.Document,String>>
    handle(org.bson.Document doc)
    Processes a request and replies
    com.leakyabstractions.result.api.Result<org.bson.Document,String>
    handleSync(org.bson.Document doc)
     
  • Method Details

    • handleSync

      com.leakyabstractions.result.api.Result<org.bson.Document,String> handleSync(org.bson.Document doc)
    • handle

      default CompletionStage<com.leakyabstractions.result.api.Result<org.bson.Document,String>> handle(org.bson.Document doc)
      Description copied from interface: RequestHandler
      Processes a request and replies
      Specified by:
      handle in interface RequestHandler
      Returns:
      result to send back to the requesting client.