You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`PollInputStreamEntryMessage`|`0x0400`| Carries the service method input message(s) of the invocation. Note: currently the runtime always sends this entry completed, but this may change in future. |
253
-
|`GetStateEntryMessage`|`0x0800`| Get the value of a service instance state key. |
254
-
|`SleepEntryMessage`|`0x0C00`| Initiate a timer that completes after the given time. |
255
-
|`InvokeEntryMessage`|`0x0C01`| Invoke another Restate service. |
256
-
|`AwakeableEntryMessage`|`0x0C03`| Arbitrary result container which can be completed from another service, given a specific id. See [Awakeable identifier](#awakeable-identifier) for more details. |
248
+
### Journal entries reference
257
249
258
-
**Non-Completable journal entries**
250
+
The following tables describe the currently available journal entries. For more details, check the protobuf message
251
+
descriptions in [`protocol.proto`](dev/restate/service/protocol.proto).
|`OutputStreamEntryMessage`|`0x0401`| Carries the service method output message(s) or terminal failure of the invocation. Note: currently the runtime accepts only one entry of this type, but this may change in future. |
263
-
|`SetStateEntryMessage`|`0x0800`| Set the value of a service instance state key. |
264
-
|`ClearStateEntryMessage`|`0x0801`| Clear the value of a service instance state key. |
265
-
|`BackgroundInvokeEntryMessage`|`0x0C02`| Invoke another Restate service at the given time, without waiting for the response. |
266
-
|`CompleteAwakeableEntryMessage`|`0x0C04`| Complete an `Awakeable`, given its id. See [Awakeable identifier](#awakeable-identifier) for more details. |
|`PollInputStreamEntryMessage`|`0x0400`| Yes | No | Carries the service method input message(s) of the invocation. Note: currently the runtime always sends this entry completed, but this may change in future. |
256
+
|`GetStateEntryMessage`|`0x0800`| Yes | No | Get the value of a service instance state key. |
257
+
|`SleepEntryMessage`|`0x0C00`| Yes | No | Initiate a timer that completes after the given time. |
258
+
|`InvokeEntryMessage`|`0x0C01`| Yes | Yes | Invoke another Restate service. |
259
+
|`AwakeableEntryMessage`|`0x0C03`| Yes | No | Arbitrary result container which can be completed from another service, given a specific id. See [Awakeable identifier](#awakeable-identifier) for more details. |
260
+
|`BackgroundInvokeEntryMessage`|`0x0C02`| No | Yes | Invoke another Restate service at the given time, without waiting for the response. |
261
+
|`CompleteAwakeableEntryMessage`|`0x0C04`| No | Yes | Complete an `Awakeable`, given its id. See [Awakeable identifier](#awakeable-identifier) for more details. |
262
+
|`OutputStreamEntryMessage`|`0x0401`| No | No | Carries the service method output message(s) or terminal failure of the invocation. Note: currently the runtime accepts only one entry of this type, but this may change in future. |
263
+
|`SetStateEntryMessage`|`0x0800`| No | No | Set the value of a service instance state key. |
264
+
|`ClearStateEntryMessage`|`0x0801`| No | No | Clear the value of a service instance state key. |
267
265
268
266
#### Awakeable identifier
269
267
@@ -332,16 +330,12 @@ additional features to the users.
332
330
The protocol allows the SDK to register an arbitrary entry type within the journal. The type MUST be `>= 0xFC00`. The
333
331
runtime will treat this entry as any other entry, persisting it and sending it during replay in the correct order.
334
332
335
-
If the SDK needs an acknowledgment that the entry has been persisted, it can set the `REQUIRES_ACK` flag in the header.
336
-
When set, as soon as the entry is persisted, the runtime will send back a `CompletionMessage` with the `result.empty`
337
-
field set, as described in [Entries and Completions section](#entries-and-completions).
0 commit comments