18 #include "hazelcast/client/proxy/TransactionalQueueImpl.h"
36 boost::future<bool>
offer(
const E &e) {
37 return offer(e, std::chrono::milliseconds::zero());
46 boost::future<bool>
offer(
const E &e, std::chrono::milliseconds timeout) {
47 return proxy::TransactionalQueueImpl::offer(to_data(e), timeout);
56 boost::future<boost::optional<E>>
poll() {
57 return poll<E>(std::chrono::milliseconds::zero());
66 boost::future<boost::optional<E>>
poll(std::chrono::milliseconds timeout) {
67 return to_object<E>(proxy::TransactionalQueueImpl::poll_data(timeout));
72 : proxy::TransactionalQueueImpl(name, transaction_proxy) {
Provides a context to do transactional operations; so beginning/committing transactions,...
Transactional implementation of iqueue.
boost::future< bool > offer(const E &e)
Transactional implementation of iqueue::offer(const E &e)
boost::future< bool > offer(const E &e, std::chrono::milliseconds timeout)
Transactional implementation of iqueue::offer(const E &e, std::chrono::milliseconds timeout)
boost::future< boost::optional< E > > poll()
Transactional implementation of iqueue::poll()
boost::future< boost::optional< E > > poll(std::chrono::milliseconds timeout)
Transactional implementation of iqueue::poll(std::chrono::milliseconds timeout)