19 #ifndef HAZELCAST_TransactionalQueue 20 #define HAZELCAST_TransactionalQueue 22 #include "hazelcast/client/proxy/TransactionalQueueImpl.h" 28 class RawPointerTransactionalQueue;
57 bool offer(
const E& e,
long timeoutInMillis) {
58 return proxy::TransactionalQueueImpl::offer(toData(&e), timeoutInMillis);
66 boost::shared_ptr<E>
poll() {
75 boost::shared_ptr<E>
poll(
long timeoutInMillis) {
76 return boost::shared_ptr<E>(toObject<E>(proxy::TransactionalQueueImpl::pollData(timeoutInMillis)));
85 return proxy::TransactionalQueueImpl::size();
90 : proxy::TransactionalQueueImpl(name, transactionProxy) {
97 #endif //HAZELCAST_TransactionalQueue bool offer(const E &e)
Transactional implementation of IQueue::offer(const E &e)
Definition: TransactionalQueue.h:48
boost::shared_ptr< E > poll()
Transactional implementation of IQueue::poll()
Definition: TransactionalQueue.h:66
Transactional implementation of IQueue.
Definition: RawPointerTransactionalQueue.h:34
int size()
Transactional implementation of IQueue::size()
Definition: TransactionalQueue.h:84
boost::shared_ptr< E > poll(long timeoutInMillis)
Transactional implementation of IQueue::poll(long timeoutInMillis)
Definition: TransactionalQueue.h:75
Definition: MapEntryView.h:32
Transactional implementation of IQueue.
Definition: TransactionalQueue.h:38
bool offer(const E &e, long timeoutInMillis)
Transactional implementation of IQueue::offer(const E &e, long timeoutInMillis)
Definition: TransactionalQueue.h:57
Provides a context to do transactional operations; so beginning/committing transactions, but also retrieving transactional data-structures like the TransactionalMap.
Definition: TransactionContext.h:54