public class WriteThroughStore extends AbstractMapDataStore<Data,Object>
Constructor and Description |
---|
WriteThroughStore(MapStoreWrapper store,
SerializationService serializationService) |
Modifier and Type | Method and Description |
---|---|
Object |
add(Data key,
Object value,
long time) |
Object |
addBackup(Data key,
Object value,
long time) |
void |
addTransient(Data key,
long now) |
Collection<Data> |
flush() |
Object |
flush(Data key,
Object value,
long now,
boolean backup) |
Object |
load(Data key) |
boolean |
loadable(Data key,
long lastUpdateTime,
long now) |
int |
notFinishedOperationsCount() |
void |
remove(Data key,
long time) |
void |
removeBackup(Data key,
long time) |
void |
reset() |
convertToObjectKeys, getStore, loadAll, removeAll, toData, toObject
public WriteThroughStore(MapStoreWrapper store, SerializationService serializationService)
public void addTransient(Data key, long now)
public void remove(Data key, long time)
public void removeBackup(Data key, long time)
public void reset()
public boolean loadable(Data key, long lastUpdateTime, long now)
public Collection<Data> flush()
public Object flush(Data key, Object value, long now, boolean backup)
key
- key to be flushedvalue
- value to be flushednow
- now in millisbackup
- true
calling this method for backup partition, false
for owner partition.public int notFinishedOperationsCount()
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.