public final class RingbufferStoreWrapper extends Object implements RingbufferStore<Data>
| Modifier and Type | Method and Description | 
|---|---|
| static RingbufferStoreWrapper | create(String name,
      RingbufferStoreConfig storeConfig,
      InMemoryFormat inMemoryFormat,
      SerializationService serializationService,
      ClassLoader classLoader)Factory method that creates a  RingbufferStoreWrapper. | 
| long | getLargestSequence()Return the largest sequence seen by the data store. | 
| boolean | isEnabled()Is the ring buffer store enabled. | 
| Data | load(long sequence)Loads the value of a given sequence. | 
| void | store(long sequence,
     Data value)Stores one item with it's corresponding sequence. | 
| void | storeAll(long firstItemSequence,
        Data[] items)Stores multiple entries. | 
public static RingbufferStoreWrapper create(String name, RingbufferStoreConfig storeConfig, InMemoryFormat inMemoryFormat, SerializationService serializationService, ClassLoader classLoader)
RingbufferStoreWrapper. It attempts to create the ring buffer store from several
 sources :
 name - ring buffer namestoreConfig - store config of ring bufferinMemoryFormat - the format of the stored items (BINARY, OBJECT or NATIVE). NATIVE format translates into
                             binary values on the store method calls.serializationService - serialization service.RingbufferStoreWrapperpublic boolean isEnabled()
public void store(long sequence,
                  Data value)
RingbufferStorestore in interface RingbufferStore<Data>sequence - the sequence ID of the datavalue - the value of the data to storepublic void storeAll(long firstItemSequence,
                     Data[] items)
RingbufferStorestoreAll in interface RingbufferStore<Data>firstItemSequence - the sequence of the first itemitems - the items that are being storedpublic Data load(long sequence)
RingbufferStoreload in interface RingbufferStore<Data>sequence - the sequence of the requested itempublic long getLargestSequence()
RingbufferStoregetLargestSequence in interface RingbufferStore<Data>Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.