public abstract class AbstractSimpleRecord extends Object implements Record
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
active |
protected short |
blockId |
protected CMap |
cmap |
protected long |
id |
protected Data |
key |
| Constructor and Description |
|---|
AbstractSimpleRecord(int blockId,
CMap cmap,
long id,
Data key) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcopy, getCost, getValue, getValueData, hasValueData, invalidate, setValue, setValueData, toString, valueCountprotected final CMap cmap
protected final long id
protected final Data key
protected final short blockId
protected volatile boolean active
public void runBackupOps()
runBackupOps in interface Recordpublic void addBackupOp(VersionedBackupOp bo)
addBackupOp in interface Recordpublic void forceBackupOps()
forceBackupOps in interface Recordpublic Object getKey()
public Data getKeyData()
getKeyData in interface Recordpublic Long[] getIndexes()
getIndexes in interface Recordpublic byte[] getIndexTypes()
getIndexTypes in interface Recordpublic void setIndexes(Long[] indexes, byte[] indexTypes)
setIndexes in interface Recordpublic boolean unlock(int threadId,
Address address)
public boolean testLock(int threadId,
Address address)
public void addScheduledAction(ScheduledAction scheduledAction)
addScheduledAction in interface Recordpublic boolean isRemovable()
isRemovable in interface Recordpublic boolean isEvictable()
isEvictable in interface Recordpublic boolean hasListener()
hasListener in interface Recordpublic void addListener(Address address, boolean returnValue)
addListener in interface Recordpublic void removeListener(Address address)
removeListener in interface Recordpublic void setLastUpdated()
setLastUpdated in interface Recordpublic void setLastAccessed()
setLastAccessed in interface Recordpublic long getExpirationTime()
getExpirationTime in interface MapEntrygetExpirationTime in interface Recordpublic long getRemainingTTL()
getRemainingTTL in interface Recordpublic long getRemainingIdle()
getRemainingIdle in interface Recordpublic void setMaxIdle(long idle)
setMaxIdle in interface Recordpublic void setExpirationTime(long expirationTime)
setExpirationTime in interface Recordpublic void setInvalid()
setInvalid in interface Recordpublic boolean isValid()
public void markRemoved()
markRemoved in interface Recordpublic long getVersion()
getVersion in interface MapEntrygetVersion in interface Recordpublic void setVersion(long version)
setVersion in interface Recordpublic void incrementVersion()
incrementVersion in interface Recordpublic long getCreationTime()
getCreationTime in interface MapEntrygetCreationTime in interface Recordpublic void setCreationTime(long newValue)
setCreationTime in interface Recordpublic long getLastAccessTime()
getLastAccessTime in interface MapEntrygetLastAccessTime in interface Recordpublic void setLastAccessTime(long lastAccessTime)
setLastAccessTime in interface Recordpublic long getLastUpdateTime()
getLastUpdateTime in interface MapEntrygetLastUpdateTime in interface Recordpublic void setLastUpdateTime(long lastUpdateTime)
setLastUpdateTime in interface Recordpublic int getHits()
public void incrementHits()
incrementHits in interface Recordpublic int getBlockId()
getBlockId in interface Recordpublic DistributedLock getLock()
public void setLock(DistributedLock lock)
public Collection<ValueHolder> getMultiValues()
getMultiValues in interface Recordpublic void setMultiValues(Collection<ValueHolder> lsValues)
setMultiValues in interface Recordpublic int getBackupOpCount()
getBackupOpCount in interface Recordpublic SortedSet<VersionedBackupOp> getBackupOps()
getBackupOps in interface Recordpublic void setBackupOps(SortedSet<VersionedBackupOp> backupOps)
setBackupOps in interface Recordpublic long getWriteTime()
getWriteTime in interface Recordpublic void setWriteTime(long writeTime)
setWriteTime in interface Recordpublic long getRemoveTime()
getRemoveTime in interface Recordpublic void setRemoveTime(long removeTime)
setRemoveTime in interface Recordpublic boolean hasScheduledAction()
hasScheduledAction in interface Recordpublic List<ScheduledAction> getScheduledActions()
getScheduledActions in interface Recordpublic void setScheduledActions(List<ScheduledAction> lsScheduledActions)
setScheduledActions in interface Recordpublic Map<Address,Boolean> getListeners()
getListeners in interface Recordpublic void setMapListeners(Map<Address,Boolean> mapListeners)
setMapListeners in interface Recordpublic int getScheduledActionCount()
getScheduledActionCount in interface Recordpublic int getLockCount()
getLockCount in interface Recordpublic Address getLockAddress()
getLockAddress in interface Recordpublic long getLockAcquireTime()
getLockAcquireTime in interface Recordpublic com.hazelcast.impl.AbstractRecord.OptionalInfo getOptionalInfo()
getOptionalInfo in interface Recordpublic void setLastStoredTime(long lastStoredTime)
setLastStoredTime in interface Recordpublic long getLastStoredTime()
getLastStoredTime in interface MapEntrygetLastStoredTime in interface Recordpublic boolean isLoadable()
isLoadable in interface Recordpublic int hashCode()
Copyright © 2013 Hazelcast, Inc.. All rights reserved.