Interface GraphQLStream.Emitter

Enclosing interface:
GraphQLStream

public static interface GraphQLStream.Emitter
Where a stream sends what it produces.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Ends the stream.
    void
    Ends the stream with an error, reported to the client.
    void
    next(Object event)
    Sends one event.
  • Method Details

    • next

      void next(Object event)
      Sends one event.
    • error

      void error(Throwable error)
      Ends the stream with an error, reported to the client.
    • complete

      void complete()
      Ends the stream.