Node QML Type
Qt Remote Objects ネットワーク上のノード。詳細...
Import Statement: | import QtRemoteObjects 6.8 |
In C++: | QRemoteObjectNode |
プロパティ
- heartbeatInterval : int
- persistedStore : QRemoteObjectAbstractPersistedStore
- registryUrl : url
詳細説明
Node型は、Qt Remote Objects ネットワークへのエントリーポイントを提供する。ネットワークは2つのノードのような単純なものから、任意に複雑なプロセスやデバイスの集合まである。
Nodeは他のノードが接続できるurlを持たないため、レプリカを取得することしかできない。ソースオブジェクトを共有することはできません。
プロパティの説明
heartbeatInterval : int |
ハートビート間隔(ミリ秒)。
ハートビート(ソケット接続にのみ有効)は、接続ノードに定期的にメッセージを送信し、接続が切断されたかどうかを検出します。Qt Remote Objects 、切断された接続を検出すると自動的に再接続を試みます。この関数は、クライアントがデータを送信しようとしたときにのみサーバが利用できないことを検出するため、この検出を支援することができます。
値を0
(デフォルト)に設定すると、ハートビートが無効になる。
persistedStore : QRemoteObjectAbstractPersistedStore |
ノードにQRemoteObjectAbstractPersistedStore インスタンスを設定できるようにします。
PERSISTED 特性を持つレプリカPROPメンバが、レプリカが削除されたときに現在の値を保存し、次にレプリカが起動されたときに保存された値を復元できるようにします。
永続性がどこでどのように処理されるかを制御するために、QRemoteObjectAbstractPersistedStore クラスの実装が必要です。デフォルトのQSettings ベースの実装はSettingsStore で提供されています。
© 2025 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.