Interface GraphQL.SubscriptionListener

Enclosing class:
GraphQL

public static interface GraphQL.SubscriptionListener
Receives what a subscription produces.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    The stream ended.
    void
    The subscription failed before or while streaming; result has errors only.
    void
    next(Map<String,Object> result)
    One response, a map like GraphQL.execute(String) returns, for one event.
  • Method Details

    • next

      void next(Map<String,Object> result)
      One response, a map like GraphQL.execute(String) returns, for one event.
    • error

      void error(Map<String,Object> result)
      The subscription failed before or while streaming; result has errors only. Nothing follows.
    • complete

      void complete()
      The stream ended. Nothing follows.