Interface JSONContext.AsyncParser

All Known Implementing Classes:
BufferingJSONAsyncParser, JettyJSONContext.AsyncJSONParser
Enclosing interface:
JSONContext<T extends Message.Mutable>

public static interface JSONContext.AsyncParser
A non-blocking JSON parser.
  • Method Summary

    Modifier and Type
    Method
    Description
    <R> R
    Signals the end of the JSON string content to this parser and returns the parsed object.
    void
    parse(ByteBuffer buffer)
     
  • Method Details

    • parse

      void parse(ByteBuffer buffer)
      Parameters:
      buffer - the buffer chunk to parse
    • complete

      <R> R complete()

      Signals the end of the JSON string content to this parser and returns the parsed object.

      Type Parameters:
      R - the type to cast the result to
      Returns:
      the result of the JSON parsing