Interface Handler


public interface Handler
What a Lambda-style handler implements. The event and the return value are raw JSON strings at this layer; the generated dispatcher from a @RestClient interface is what turns them into typed calls.
  • Method Summary

    Modifier and Type
    Method
    Description
    handle(String event, String requestId)
    • event: the invocation payload, as JSON
  • Method Details

    • handle

      String handle(String event, String requestId) throws Exception
      • event: the invocation payload, as JSON
      • requestId: the host runtime's id for this invocation, for correlating logs

      Returns the response payload as JSON. Throwing is reported to the host runtime as an invocation error.

      Throws:
      Exception