Hazelcast C++ Client
Hazelcast C++ Client Library
hazelcast::client::transactional_queue Class Reference

Transactional implementation of iqueue. More...

#include <transactional_queue.h>

+ Inheritance diagram for hazelcast::client::transactional_queue:

Public Member Functions

template<typename E >
boost::future< bool > offer (const E &e)
 Transactional implementation of iqueue::offer(const E &e) More...
 
template<typename E >
boost::future< bool > offer (const E &e, std::chrono::milliseconds timeout)
 Transactional implementation of iqueue::offer(const E &e, std::chrono::milliseconds timeout) More...
 
template<typename E >
boost::future< boost::optional< E > > poll ()
 Transactional implementation of iqueue::poll() More...
 
template<typename E >
boost::future< boost::optional< E > > poll (std::chrono::milliseconds timeout)
 Transactional implementation of iqueue::poll(std::chrono::milliseconds timeout) More...
 

Friends

class transaction_context
 

Detailed Description

Transactional implementation of iqueue.

See also
iqueue

Definition at line 27 of file transactional_queue.h.

Member Function Documentation

◆ offer() [1/2]

template<typename E >
boost::future<bool> hazelcast::client::transactional_queue::offer ( const E &  e)
inline

Transactional implementation of iqueue::offer(const E &e)

See also
iqueue::offer(const E &e)

Definition at line 36 of file transactional_queue.h.

36  {
37  return offer(e, std::chrono::milliseconds::zero());
38  }
boost::future< bool > offer(const E &e)
Transactional implementation of iqueue::offer(const E &e)

◆ offer() [2/2]

template<typename E >
boost::future<bool> hazelcast::client::transactional_queue::offer ( const E &  e,
std::chrono::milliseconds  timeout 
)
inline

Transactional implementation of iqueue::offer(const E &e, std::chrono::milliseconds timeout)

See also
iqueue::offer(const E &e, std::chrono::milliseconds timeout)

Definition at line 46 of file transactional_queue.h.

46  {
47  return proxy::TransactionalQueueImpl::offer(to_data(e), timeout);
48  }

◆ poll() [1/2]

template<typename E >
boost::future<boost::optional<E> > hazelcast::client::transactional_queue::poll ( )
inline

Transactional implementation of iqueue::poll()

See also
iqueue::poll()

Definition at line 56 of file transactional_queue.h.

56  {
57  return poll<E>(std::chrono::milliseconds::zero());
58  }

◆ poll() [2/2]

template<typename E >
boost::future<boost::optional<E> > hazelcast::client::transactional_queue::poll ( std::chrono::milliseconds  timeout)
inline

Transactional implementation of iqueue::poll(std::chrono::milliseconds timeout)

See also
iqueue::poll(std::chrono::milliseconds timeout)

Definition at line 66 of file transactional_queue.h.

66  {
67  return to_object<E>(proxy::TransactionalQueueImpl::poll_data(timeout));
68  }

The documentation for this class was generated from the following file: