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() |
int |
getId()
Returns type identifier for this class.
|
protected Map<Long,CollectionItem> |
getMap() |
int |
indexOf(boolean last,
Data value) |
protected void |
onDestroy() |
CollectionItem |
remove(int index) |
void |
rollbackRemove(long itemId) |
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, getFactoryId, hasEnoughCapacity, init, nextId, readData, remove, removeBackup, reserveAdd, reserveAddBackup, reserveRemove, reserveRemoveBackup, rollbackAdd, rollbackAddBackup, rollbackRemoveBackup, rollbackTransaction, size, writeData
public ListContainer()
public ListContainer(String name, NodeEngine nodeEngine)
public ListConfig getConfig()
getConfig
in class CollectionContainer
public void rollbackRemove(long itemId)
rollbackRemove
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
public int getId()
IdentifiedDataSerializable
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.