クラス InvocableHandlerMethodSupport

java.lang.ObjectSE
org.springframework.graphql.data.method.HandlerMethod
org.springframework.graphql.data.method.InvocableHandlerMethodSupport
既知の直属サブクラス
BatchLoaderHandlerMethodDataFetcherHandlerMethodSupport

public abstract class InvocableHandlerMethodSupport extends HandlerMethod
基になるハンドラーメソッドを呼び出すためのサポートを追加する HandlerMethod の拡張。
導入:
1.0.0
作成者:
Rossen Stoyanchev
  • コンストラクターの詳細

    • InvocableHandlerMethodSupport

      @DeprecatedSE(since="1.3.0", forRemoval=true) protected InvocableHandlerMethodSupport(HandlerMethod handlerMethod, @Nullable ExecutorSE executor)
      非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。
      代替コンストラクターを推奨
      インスタンスの作成。
      パラメーター:
      handlerMethod - コントローラーメソッド
      executor - CallableSE 戻り値に使用する ExecutorSE
    • InvocableHandlerMethodSupport

      protected InvocableHandlerMethodSupport(HandlerMethod handlerMethod, @Nullable ExecutorSE executor, boolean invokeAsync)
      インスタンスの作成。
      パラメーター:
      handlerMethod - コントローラーメソッド
      executor - CallableSE 戻り値に使用する ExecutorSE
      invokeAsync - Executor を介してメソッドを呼び出すかどうか
      導入:
      1.3.0
  • メソッドの詳細

    • doInvoke

      protected @Nullable ObjectSE doInvoke(graphql.GraphQLContext graphQLContext, @Nullable ObjectSE... argValues)
      指定された引数値でハンドラーメソッドを呼び出します。
      パラメーター:
      graphQLContext - このデータ取得操作の GraphQL コンテキスト
      argValues - メソッドを呼び出すために使用する値
      戻り値:
      メソッドから返された値、または呼び出しが失敗した場合は Mono<Throwable>
    • toArgsMono

      protected reactor.core.publisher.Mono<@Nullable ObjectSE[]> toArgsMono(@Nullable ObjectSE[] args)
      このメソッドを使用して、引数を非同期的に解決します。これは、値の少なくとも 1 つが Mono である場合にのみ役立ちます。
      パラメーター:
      args - 非同期的に解決される引数