18 #ifndef HZELCAST_CLIENT_RINGBUFFER_H_ 19 #define HZELCAST_CLIENT_RINGBUFFER_H_ 24 #include "hazelcast/client/DistributedObject.h" 26 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) 28 #pragma warning(disable: 4251) //for dll export 87 virtual int64_t
size() = 0;
138 virtual int64_t
add(
const E &item) = 0;
173 virtual std::auto_ptr<E>
readOne(int64_t sequence) = 0;
178 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) 182 #endif //HZELCAST_CLIENT_RINGBUFFER_H_ virtual int64_t capacity()=0
Returns the capacity of this Ringbuffer.
virtual int64_t tailSequence()=0
Returns the sequence of the tail.
virtual std::auto_ptr< E > readOne(int64_t sequence)=0
Reads one item from the Ringbuffer.
Base class for all distributed objects.
Definition: DistributedObject.h:58
A Ringbuffer is a data-structure where the content is stored in a ring like structure.
Definition: Ringbuffer.h:67
virtual int64_t headSequence()=0
Returns the sequence of the head.
virtual int64_t size()=0
Returns number of items in the ringbuffer.
virtual int64_t add(const E &item)=0
Adds an item to the tail of the Ringbuffer.
PN (Positive-Negative) CRDT counter.
Definition: MapEntryView.h:32
virtual int64_t remainingCapacity()=0
Returns the remaining capacity of the ringbuffer.