forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pulsar-client] Add deliver_at and deliver_after to python client (ap…
…ache#6737) * Add deliver_at and deliver_after to python client * Fix deliver_at test * Fix deliver_after function binding for Python Create a new function deliverAfter that takes the MessageBuilder and a py::object. Python object is reinterpreted as PyDateTime_Delta then convert to a std::chrono::duration and then the builder property is setted. After that we return the builder. Signed-off-by: Guillaume Perrin <[email protected]> * Fix cast of datetime in setDeliverAfter in python library Use PyObject* instead of boost::python::api::object since we want to cast to another python object, PyDateTime_Delta. Signed-off-by: Guillaume Perrin <[email protected]> * Fix test comment * Remove unused import Co-authored-by: Yoann Ciabaud <[email protected]> Co-authored-by: Guillaume Perrin <[email protected]>
- Loading branch information
Showing
3 changed files
with
112 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters