public interface RingbufferCodecTemplate
| Modifier and Type | Method and Description | 
|---|---|
| Object | add(String name,
   int overflowPolicy,
   Data value)Adds an item to the tail of the Ringbuffer. | 
| Object | addAll(String name,
      List<Data> valueList,
      int overflowPolicy)Adds all the items of a collection to the tail of the Ringbuffer. | 
| Object | capacity(String name)Returns the capacity of this Ringbuffer. | 
| Object | headSequence(String name)Returns the sequence of the head. | 
| Object | readMany(String name,
        long startSequence,
        int minCount,
        int maxCount,
        Data filter)Reads a batch of items from the Ringbuffer. | 
| Object | readOne(String name,
       long sequence)Reads one item from the Ringbuffer. | 
| Object | remainingCapacity(String name)Returns the remaining capacity of the ringbuffer. | 
| Object | size(String name)Returns number of items in the ringbuffer. | 
| Object | tailSequence(String name)Returns the sequence of the tail. | 
Object size(String name)
name - Name of the RingbufferObject tailSequence(String name)
name - Name of the RingbufferObject headSequence(String name)
name - Name of the RingbufferObject capacity(String name)
name - Name of the RingbufferObject remainingCapacity(String name)
name - Name of the RingbufferObject add(String name, int overflowPolicy, Data value)
name - Name of the RingbufferoverflowPolicy - the OverflowPolicy to use.value - to item to addObject readOne(String name, long sequence)
name - Name of the Ringbuffersequence - the sequence of the item to read.Object addAll(String name, List<Data> valueList, int overflowPolicy)
name - Name of the RingbuffervalueList - the batch of items to addoverflowPolicy - the overflowPolicy to useObject readMany(String name, long startSequence, int minCount, int maxCount, @Nullable Data filter)
name - Name of the RingbufferstartSequence - the startSequence of the first item to readminCount - the minimum number of items to read.maxCount - the maximum number of items to read.filter - Filter is allowed to be null, indicating there is no filter.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.