com.hazelcast.collection.impl.list
public class ListContainer extends CollectionContainer
itemMap, logger, name, nodeEngine, txMap
Constructor and Description |
---|
ListContainer() |
ListContainer(String name,
NodeEngine nodeEngine) |
Modifier and Type | Method and Description |
---|---|
CollectionItem |
add(int index,
Data value) |
Map<Long,Data> |
addAll(int index,
List<Data> valueList) |
CollectionItem |
get(int index) |
List<CollectionItem> |
getCollection() |
ListConfig |
getConfig() |
protected Map<Long,CollectionItem> |
getMap() |
int |
indexOf(boolean last,
Data value) |
protected void |
onDestroy() |
CollectionItem |
remove(int index) |
CollectionItem |
set(int index,
long itemId,
Data value) |
void |
setBackup(long oldItemId,
long itemId,
Data value) |
List<Data> |
sub(int from,
int to) |
add, addAll, addAllBackup, addBackup, clear, clearBackup, commitAdd, commitAddBackup, commitRemove, commitRemoveBackup, compareAndRemove, contains, destroy, ensureReserve, getAll, hasEnoughCapacity, init, nextId, readData, remove, removeBackup, reserveAdd, reserveAddBackup, reserveRemove, reserveRemoveBackup, rollbackAdd, rollbackAddBackup, rollbackRemove, rollbackRemoveBackup, rollbackTransaction, size, writeData
public ListContainer()
public ListContainer(String name, NodeEngine nodeEngine)
public ListConfig getConfig()
getConfig
in class CollectionContainer
public CollectionItem add(int index, Data value)
public CollectionItem get(int index)
public CollectionItem set(int index, long itemId, Data value)
public void setBackup(long oldItemId, long itemId, Data value)
public CollectionItem remove(int index)
public int indexOf(boolean last, Data value)
public List<CollectionItem> getCollection()
getCollection
in class CollectionContainer
protected Map<Long,CollectionItem> getMap()
getMap
in class CollectionContainer
protected void onDestroy()
onDestroy
in class CollectionContainer
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.