18 #ifndef HZELCAST_CLIENT_RINGBUFFER_H_
19 #define HZELCAST_CLIENT_RINGBUFFER_H_
24 #include "hazelcast/client/IDistributedObject.h"
82 virtual int64_t
size() = 0;
133 virtual int64_t
add(
const E &item) = 0;
168 virtual std::auto_ptr<E>
readOne(int64_t sequence) = 0;
173 #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.
A Ringbuffer is a data-structure where the content is stored in a ring like structure.
Definition: Ringbuffer.h:62
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.
Definition: IDistributedObject.h:33
Definition: MapEntryView.h:32
virtual int64_t remainingCapacity()=0
Returns the remaining capacity of the ringbuffer.