Expand description
The client: the configuration, the call with the common contract’s retries (doc 19, section 18.4) and the nine operations of the surface (section 18.3).
Structs§
- Call
- A call to the API, before it becomes HTTP.
- Client
- Config
- Consume
Options - Delivery
- What the handler receives: the whole message, the body (already deserialized in
consume_typed;()inconsume_with),delete(defaulttrue) andDelivery::change_visibility. - Error
- The only kind of error of the connector: the API
ErrorResponse, or a failure of the client itself (statuszero andcodeclient.network,client.timeoutorclient.invalid-config). - Message
- A delivered message. The
bodyalways comes out as bytes (section 18.4). - Page
- A page (
Page<T>): the items and the cursor of the next one, if any. - Publish
Options - Publish
Response - Reply
- The response of a call that succeeded.
- Topic
- Topic
Request POST /topics. The connector sends only what was filled in; whatever does not apply to the type, the server refuses.- Topic
Update PATCH /topics/{topic}: only what was filled in is sent.- Visibility
Response
Enums§
- Consume
Error - What consuming with a handler returns when it goes wrong: the API (or the client itself) or the handler.
- Nullable
- A
PATCHfield that accepts going back to the server default (null).
Constants§
- CONTRACT_
VERSION - The version of the API contract this connector implements (UC-CNT-028).
- DEFAULT_
MAX_ MESSAGES - One message at a time (the
maxMessagesof consuming with a handler). - DEFAULT_
VISIBILITY_ TIMEOUT - The invisibility of consuming with a handler, in seconds, which the renewal keeps.
- DEFAULT_
WAIT_ TIME - The long polling of consuming with a handler, in seconds.
Type Aliases§
- Handler
Error - The error the handler returns; its message is not deleted.