Builder class for constructing std::shared_ptr<ucxx::RequestTag> objects. More...
#include <request_tag_builder.h>
Public Member Functions | |
| RequestTagBuilder (std::shared_ptr< Component > endpointOrWorker, std::variant< data::TagSend, data::TagReceive, data::TagReceiveWithHandle > requestData) | |
| Constructor for RequestTagBuilder with required parameters. | |
| std::shared_ptr< RequestTag > | build () |
| Build and return the RequestTag. | |
| operator std::shared_ptr< RequestTag > () | |
| Implicit conversion operator to shared_ptr<RequestTag>. | |
| operator std::shared_ptr< Request > () | |
| Implicit conversion operator to shared_ptr<Request>. | |
| Public Member Functions inherited from ucxx::RequestCallbackBuilderBase< RequestTagBuilder > | |
| RequestTagBuilder & | callbackFunction (RequestCallbackUserFunction fn) & |
| Set the user-defined callback function to call upon completion. | |
| RequestTagBuilder & | callbackData (RequestCallbackUserData data) & |
| Set the user-defined data to pass to the callback function. | |
| Public Member Functions inherited from ucxx::RequestBuilderBase< RequestTagBuilder > | |
| RequestBuilderBase ()=default | |
| Default constructor. | |
| RequestBuilderBase & | operator= (const RequestBuilderBase &)=delete |
| Copy assignment disabled to prevent duplicate request submissions. | |
| RequestTagBuilder & | pythonFuture (bool enable=true) & |
| Configure Python future support. | |
Additional Inherited Members | |
| Protected Member Functions inherited from ucxx::RequestBuilderBase< RequestTagBuilder > | |
| void | markBuilt () |
| Assert that build() has not been called yet, then mark as built. | |
| Protected Attributes inherited from ucxx::RequestCallbackBuilderBase< RequestTagBuilder > | |
| RequestCallbackUserFunction | _callbackFunction |
| User callback on completion. | |
| RequestCallbackUserData | _callbackData |
| Data passed to callback. | |
| Protected Attributes inherited from ucxx::RequestBuilderBase< RequestTagBuilder > | |
| bool | _enablePythonFuture |
| Enable Python future support. | |
| bool | _built |
| Whether build() has already been called. | |
Builder class for constructing std::shared_ptr<ucxx::RequestTag> objects.
Request builders capture the arguments required to create a request and expose optional settings through fluent setters. Construction happens when build() is called or when the builder is implicitly converted to a compatible std::shared_ptr.
Request builders are move-only and single-use. Calling build() or implicitly converting the same builder object more than once throws std::logic_error. The builder is consumed before request validation or construction completes; if that first attempt throws, retrying the same builder still throws std::logic_error.
Request builder objects are not thread-safe. Accessing the same builder object from multiple threads requires external synchronization. Distinct builder objects are independent.
Each request-specific factory function returns the corresponding builder. Required arguments are passed to the factory function, while optional settings such as Python future notification and completion callbacks are configured through method chaining when supported by that request type.
The endpointOrWorker and requestData are required and must be provided to requestTagBuilder().
|
explicit |
Constructor for RequestTagBuilder with required parameters.
|
nodiscard |
Build and return the RequestTag.
| ucxx::RequestTagBuilder::operator std::shared_ptr< Request > | ( | ) |
Implicit conversion operator to shared_ptr<Request>.
| ucxx::RequestTagBuilder::operator std::shared_ptr< RequestTag > | ( | ) |
Implicit conversion operator to shared_ptr<RequestTag>.