T
- ring buffer item typepublic interface RingbufferStore<T>
Modifier and Type | Method and Description |
---|---|
long |
getLargestSequence()
Return the largest sequence seen by the data store.
|
T |
load(long sequence)
Loads the value of a given sequence.
|
void |
store(long sequence,
T data)
Stores one item with it's corresponding sequence.
|
void |
storeAll(long firstItemSequence,
T[] items)
Stores multiple entries.
|
void store(long sequence, T data)
sequence
- the sequence ID of the datadata
- the value of the data to storevoid storeAll(long firstItemSequence, T[] items)
firstItemSequence
- the sequence of the first itemitems
- the items that are being storedT load(long sequence)
sequence
- the sequence of the requested itemlong getLargestSequence()
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.