Source capability adapter; calls must return promptly without UI I/O. External work is submitted through the application's existing scheduler/worker path. submit() returns PENDING for admission, or a qualified final result; applyReply() on the edit session handles later delivery. Unconditional endpoints must serialize backend acceptance for each target; rejecting a second in-flight request is valid.
More...
#include <model_edit.hpp>
template<class T>
class portals::EditEndpoint< T >
Source capability adapter; calls must return promptly without UI I/O. External work is submitted through the application's existing scheduler/worker path. submit() returns PENDING for admission, or a qualified final result; applyReply() on the edit session handles later delivery. Unconditional endpoints must serialize backend acceptance for each target; rejecting a second in-flight request is valid.
- Template Parameters
-
| T | Owning field value type selected from the navigation record. |
◆ capabilities()
- Returns
- Declared backend guarantees.
◆ ownedBytes()
- Parameters
-
| value | Owning field candidate whose complete retained payload is measured. |
- Returns
- Conservative byte charge including dynamic members, or unsupported capability. sizeof(T) alone is insufficient for strings, vectors or nested dynamic storage.
◆ read()
- Parameters
-
| resource | Exact logical source. |
| row | Complete record key. |
- Returns
- One owning field value/version, pending WOULD_BLOCK, or checked failure.
◆ submit()
- Parameters
-
| request | Owning candidate/precondition. |
- Returns
- Admission or exact final receipt. For conditional endpoints ACCEPTED means the precondition and write happened together. The adapter must check its bound backend incarnation when applying a request, including delayed work. sourceSession qualifies the UI source and is not a server generation. A checked error means no backend admission; uncertain outcomes must remain PENDING. Unconditional endpoints expose only their declared serialized/exclusive-writer guarantee.
The documentation for this class was generated from the following file: