Class SentryBatchLoaderRegistry.SentryRegistrationSpec<K,V>

java.lang.Object
io.sentry.spring.graphql.SentryBatchLoaderRegistry.SentryRegistrationSpec<K,V>
All Implemented Interfaces:
org.springframework.graphql.execution.BatchLoaderRegistry.RegistrationSpec<K,V>
Enclosing class:
SentryBatchLoaderRegistry

public static final class SentryBatchLoaderRegistry.SentryRegistrationSpec<K,V> extends Object implements org.springframework.graphql.execution.BatchLoaderRegistry.RegistrationSpec<K,V>
  • Constructor Details

    • SentryRegistrationSpec

      public SentryRegistrationSpec(@NotNull @NotNull org.springframework.graphql.execution.BatchLoaderRegistry.RegistrationSpec<K,V> delegate, Class<K> keyType, Class<V> valueType)
    • SentryRegistrationSpec

      public SentryRegistrationSpec(@NotNull @NotNull org.springframework.graphql.execution.BatchLoaderRegistry.RegistrationSpec<K,V> delegate, String name)
  • Method Details

    • withName

      public org.springframework.graphql.execution.BatchLoaderRegistry.RegistrationSpec<K,V> withName(String name)
      Specified by:
      withName in interface org.springframework.graphql.execution.BatchLoaderRegistry.RegistrationSpec<K,V>
    • withOptions

      public org.springframework.graphql.execution.BatchLoaderRegistry.RegistrationSpec<K,V> withOptions(Consumer<org.dataloader.DataLoaderOptions> optionsConsumer)
      Specified by:
      withOptions in interface org.springframework.graphql.execution.BatchLoaderRegistry.RegistrationSpec<K,V>
    • withOptions

      public org.springframework.graphql.execution.BatchLoaderRegistry.RegistrationSpec<K,V> withOptions(org.dataloader.DataLoaderOptions options)
      Specified by:
      withOptions in interface org.springframework.graphql.execution.BatchLoaderRegistry.RegistrationSpec<K,V>
    • registerBatchLoader

      public void registerBatchLoader(BiFunction<List<K>,org.dataloader.BatchLoaderEnvironment,reactor.core.publisher.Flux<V>> loader)
      Specified by:
      registerBatchLoader in interface org.springframework.graphql.execution.BatchLoaderRegistry.RegistrationSpec<K,V>
    • registerMappedBatchLoader

      public void registerMappedBatchLoader(BiFunction<Set<K>,org.dataloader.BatchLoaderEnvironment,reactor.core.publisher.Mono<Map<K,V>>> loader)
      Specified by:
      registerMappedBatchLoader in interface org.springframework.graphql.execution.BatchLoaderRegistry.RegistrationSpec<K,V>