19 #ifndef HAZELCAST_CLIENT_ADAPTOR_RAWPOINTERTRANSACTIONALQUEUE_H_
20 #define HAZELCAST_CLIENT_ADAPTOR_RAWPOINTERTRANSACTIONALQUEUE_H_
22 #include "hazelcast/client/TransactionalQueue.h"
37 q.context->getSerializationService()) {
46 return queue.
offer(e);
54 bool offer(
const T &e,
long timeoutInMillis) {
55 return queue.
offer(e, timeoutInMillis);
72 std::auto_ptr<T>
poll(
long timeoutInMillis) {
73 return serializationService.toObject<T>(queue.pollData(timeoutInMillis).get());
87 serialization::pimpl::SerializationService &serializationService;
93 #endif //HAZELCAST_CLIENT_ADAPTOR_RAWPOINTERTRANSACTIONALQUEUE_H_
bool offer(const T &e)
Transactional implementation of IQueue::offer(const T &e)
Definition: RawPointerTransactionalQueue.h:45
bool offer(const E &e)
Transactional implementation of IQueue::offer(const E &e)
Definition: TransactionalQueue.h:48
bool offer(const T &e, long timeoutInMillis)
Transactional implementation of IQueue::offer(const T &e, long timeoutInMillis)
Definition: RawPointerTransactionalQueue.h:54
int size()
Transactional implementation of IQueue::size()
Definition: RawPointerTransactionalQueue.h:81
Transactional implementation of IQueue.
Definition: RawPointerTransactionalQueue.h:34
int size()
Transactional implementation of IQueue::size()
Definition: TransactionalQueue.h:84
Definition: MapEntryView.h:32
std::auto_ptr< T > poll(long timeoutInMillis)
Transactional implementation of IQueue::poll(long timeoutInMillis)
Definition: RawPointerTransactionalQueue.h:72
std::auto_ptr< T > poll()
Transactional implementation of IQueue::poll()
Definition: RawPointerTransactionalQueue.h:63