Class JsonKeysetCursorStrategy

java.lang.Object
org.springframework.graphql.data.query.JsonKeysetCursorStrategy
All Implemented Interfaces:
CursorStrategy<Map<String,Object>>

public final class JsonKeysetCursorStrategy extends Object implements CursorStrategy<Map<String,Object>>
Strategy to convert a keyset to and from a JSON String for use with ScrollPositionCursorStrategy.
Since:
1.2.0
Author:
Rossen Stoyanchev
  • Constructor Details

    • JsonKeysetCursorStrategy

      public JsonKeysetCursorStrategy()
      Shortcut constructor that uses ServerCodecConfigurer.
    • JsonKeysetCursorStrategy

      public JsonKeysetCursorStrategy(CodecConfigurer codecConfigurer)
      Constructor with a CodecConfigurer in which to find the JSON encoder and decoder to use.
      Parameters:
      codecConfigurer - the codec configurer to be checked for JSON codec
  • Method Details