Qt GRPC インターセプター

インターセプトの仕組みや、インターセプタインターフェースがRPCのライフサイクルにどのように関与するかについての概要については、『Qt GRPC インターセプタの概要』を参照してください。

Qt GRPC は、RPCライフサイクルにおけるフックポイントとして、以下のインターセプタインターフェースを提供します:

インターフェースフックポイント方向変更可能
QGrpcStartInterceptorRPCの開始前アウトバウンド初期メッセージオブジェクト、呼び出しオプション
QGrpcWriteMessageInterceptor送信メッセージが書き込まれる前送信メッセージオブジェクト
QGrpcWritesDoneInterceptorクライアントが書き込み完了を通知したとき送信—
QGrpcCancelInterceptorRPCがキャンセルされたとき送信—
QGrpcInitialMetadataInterceptor初期メタデータを受信したとき受信時メタデータ
QGrpcMessageReceivedInterceptorメッセージのペイロードを受信したとき受信シリアライズされたメッセージデータ
QGrpcTrailingMetadataInterceptor末尾のメタデータを受信したとき受信時メタデータ
QGrpcFinishedInterceptorRPCが完了したとき受信最終ステータス

以下のクラスおよびページが、Qt GRPC のインターセプタ機構を構成しています:

QGrpcCancelInterceptor

RPCのキャンセル要求をインターセプトする

QGrpcFinishedInterceptor

RPCの完了ステータスをインターセプトする

QGrpcInitialMetadataInterceptor

RPCの初期メタデータをインターセプトする

QGrpcInterceptionContext

インターセプタのコールバックにコンテキスト情報を提供する

QGrpcInterceptorChain

一連のインターセプタの保存および管理を行う

QGrpcMessageReceivedInterceptor

RPCの受信メッセージペイロードをインターセプトする

QGrpcStartInterceptor

RPCの開始をインターセプトする

QGrpcTrailingMetadataInterceptor

RPCの末尾メタデータをインターセプトする

QGrpcWriteMessageInterceptor

RPC用に書き出される送信メッセージをインターセプトする

QGrpcWritesDoneInterceptor

RPCのメッセージ書き込み完了をインターセプトする

Qt GRPC Interceptors Overview

Qt GRPC のインターセプターメカニズムの概要を説明します。

QGrpcStartInterceptor::Continuation

インターセプトされたRPCの実行を続行するかどうかを制御します

InterceptorCapability

インターセプタがサポートするインターセプト・フックポイントを指定します

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.