public class GridCircularBuffer<T> extends Object
| Constructor and Description |
|---|
GridCircularBuffer(int size) |
| Modifier and Type | Method and Description |
|---|---|
T |
add(T t) |
T |
add(T t,
IgniteInClosureX<T> c) |
void |
forEach(IgniteInClosure<T> c)
Executes given closure for every item in circular buffer.
|
T2<T,Long> |
get(long idx) |
Collection<T> |
items() |
String |
toString() |
public Collection<T> items()
public void forEach(IgniteInClosure<T> c)
c - Closure to execute.@Nullable public T add(T t) throws InterruptedException
t - Item to add.null if nothing evicted.InterruptedException - If interrupted.@Nullable public T add(T t, @Nullable IgniteInClosureX<T> c) throws InterruptedException, IgniteCheckedException
t - Item to add.c - Closure to by applied on evicted object before eviction.null if nothing evicted.InterruptedException - If interrupted.IgniteCheckedException - If closure throws exception.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018