Skip to content

Solace

Solace binding。輸出的成員是 solace,每個物件都帶 bindingVersion: 0.4.0

@solaceServer

typespec
extern dec solaceServer(target: Namespace, config: valueof AsyncAPISolaceServerBinding);
欄位型別必填
msgVpnstring
clientNamestring

套用在服務 namespace 上。clientName 最長 160 個字元。

輸出的欄位是 msgVpn。Solace binding 的 0.2.0 版把它拼成 msvVpn,本 library 輸出 0.4.0 版。

@solaceOperation

typespec
extern dec solaceOperation(target: Operation, config: valueof AsyncAPISolaceOperationBinding);
欄位型別必填
destinationsunknown[]
timeToLiveint32
priorityint32
dmqEligibleboolean

套用在帶有 @send@receive 的 operation 上。

destinations 的每一筆可以帶 deliveryMode,值為 directpersistent。其他值會被回報並從該筆丟棄,該筆的其餘欄位保留。一筆的其餘欄位原樣輸出。

priority 是零或以上。