Sur cette page

QGrpcFinishedInterceptor Class

Intercepte l'état d'achèvement d'un RPC. En savoir plus...

En-tête : #include <QGrpcInterceptor>
CMake : find_package(Qt6 REQUIRED COMPONENTS Grpc)
target_link_libraries(mytarget PRIVATE Qt6::Grpc)
Depuis : Qt 6.11

Remarque : toutes les fonctions de cette classe sont réentrantes.

Fonctions publiques

virtual ~QGrpcFinishedInterceptor()
virtual void onFinished(QGrpcInterceptionContext &context, QGrpcStatus &status) = 0

Description détaillée

Implémentez QGrpcFinishedInterceptor pour observer ou modifier l'état final d'un RPC.

Pour une introduction au mécanisme d’interception et à la manière dont les interfaces d’intercepteurs participent au cycle de vie d’un RPC, consultez la section Présentation des intercepteurs d’Qt GRPC .

Remarque : cet intercepteur fonctionne dans le sens sortant. Pour plus de détails sur la manière dont plusieurs rappels d’intercepteurs circulent dans la chaîne, consultez la section « Direction et flux ».

Voir également QtGrpc::InterceptorCapability::Finished, QGrpcOperation::finished() et QGrpcInterceptionContext.

Documentation sur les fonctions membres

[virtual noexcept] QGrpcFinishedInterceptor::~QGrpcFinishedInterceptor()

Détruit l'intercepteur.

[pure virtual] void QGrpcFinishedInterceptor::onFinished(QGrpcInterceptionContext &context, QGrpcStatus &status)

Appelée lorsqu'un RPC arrive à son terme.

L'context fournit des informations sur le RPC intercepté. L'status contient le statut final et peut être modifié sur place.

Voir également QGrpcOperation::finished().

© 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.