holoscan::channel_internal::TensorSchemaPayloadPublisher
holoscan::channel_internal::TensorSchemaPayloadPublisher
Transport interface for schema payloads and Tensor ownership.
Constructors
TensorSchemaPayloadPublisher
Default
Deleted overloads
Destructor
~TensorSchemaPayloadPublisher
Assignment operators
operator=
Deleted overloads
The following overloads are deleted to prevent misuse:
Methods
reserve_tensors
Overload 1
Overload 2
publish_payload
Publish schema bytes with their reserved Tensor payload reference.
Returns: Recipient count on success, or Error for invalid size, loan, or send failure.
Parameters
Serialized schema payload bytes.
Descriptor and optional Tensor ownership consumed by the publication.
Catalog operation metadata, or an empty record for a manual channel.
publish_encoded_payload
Encode directly into an outbound transport loan and publish its used prefix.
Returns: Recipient count on success, or a checked pre-submit or publication error.
Parameters
Allocation-free encoder callback and bounded codec capacity.
Descriptor and Tensor ownership consumed by the publication.
Catalog operation metadata, or an empty record for a manual channel.
validate_sample_metadata
Validate caller-authored semantic metadata for this endpoint.
Returns: Success when the metadata belongs to this endpoint’s capture-clock contract.
Parameters
Metadata before sequence, byte size, and payload kind normalization.
validate_field_descriptor
Validate one decoded descriptor field against this endpoint’s immutable contract.
The default implementation accepts every field. Third-party catalog transports must override this function to enforce immutable descriptor-field contracts.
Returns: Success for an admitted field, or a checked pre-submit contract error.
Parameters
Canonical Tensor-field index.
Schema-derived Tensor view metadata.
Transport descriptor paired with the schema field.
make_capture_time
Label one capture coordinate with this endpoint’s catalog clock.
Returns: Bound time point, or ErrorCode::kInvalidArgument when unavailable.
Parameters
Exact caller-supplied nanosecond coordinate.
report_clock_health
Publish one ordered catalog clock-health operation.
Returns: Success after bounded acceptance, or a checked unsupported/publication error.
Parameters
Valid payload-independent health assessment.
close_stream
Publish an ordered end-of-stream operation for this catalog generation.
Returns: Submit phase, recipient count, and checked error evidence for authority accounting.
Parameters
Sequence and semantic payload identity for the terminal operation.
producer_generation
Return this catalog publisher’s producer-incarnation identity.
Returns: Nonzero identity for catalog publishers; zero for manual compatibility publishers.
next_operation_sequence
Return the next ordered catalog operation sequence without consuming it.
Returns: Next nonzero sequence, or a checked unsupported/closed/exhaustion error.
release_tensor
Release an unpublished Tensor reservation.
This function does not throw.
Parameters
Reservation whose local sidecar claim or retained owner is released.
update_connections
Refresh backend connection state.
Returns: Empty success or Error when the backend refresh fails.
has_subscribers
Return whether at least one subscriber is connected.
Returns: True when a subscriber is connected; false otherwise.
tensor_memory_options
Return graph-derived Tensor allocation options.
Returns: MemoryBuffer options on success, or Error when unavailable.