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, wait
copy, getCost, getValue, getValueData, hasValueData, invalidate, setValue, setValueData, toString, valueCount
protected 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 Record
public void addBackupOp(VersionedBackupOp bo)
addBackupOp
in interface Record
public void forceBackupOps()
forceBackupOps
in interface Record
public Object getKey()
public Data getKeyData()
getKeyData
in interface Record
public Long[] getIndexes()
getIndexes
in interface Record
public byte[] getIndexTypes()
getIndexTypes
in interface Record
public void setIndexes(Long[] indexes, byte[] indexTypes)
setIndexes
in interface Record
public boolean unlock(int threadId, Address address)
public boolean testLock(int threadId, Address address)
public void addScheduledAction(ScheduledAction scheduledAction)
addScheduledAction
in interface Record
public boolean isRemovable()
isRemovable
in interface Record
public boolean isEvictable()
isEvictable
in interface Record
public boolean hasListener()
hasListener
in interface Record
public void addListener(Address address, boolean returnValue)
addListener
in interface Record
public void removeListener(Address address)
removeListener
in interface Record
public void setLastUpdated()
setLastUpdated
in interface Record
public void setLastAccessed()
setLastAccessed
in interface Record
public long getExpirationTime()
getExpirationTime
in interface MapEntry
getExpirationTime
in interface Record
public long getRemainingTTL()
getRemainingTTL
in interface Record
public long getRemainingIdle()
getRemainingIdle
in interface Record
public void setMaxIdle(long idle)
setMaxIdle
in interface Record
public void setExpirationTime(long expirationTime)
setExpirationTime
in interface Record
public void setInvalid()
setInvalid
in interface Record
public boolean isValid()
public void markRemoved()
markRemoved
in interface Record
public long getVersion()
getVersion
in interface MapEntry
getVersion
in interface Record
public void setVersion(long version)
setVersion
in interface Record
public void incrementVersion()
incrementVersion
in interface Record
public long getCreationTime()
getCreationTime
in interface MapEntry
getCreationTime
in interface Record
public void setCreationTime(long newValue)
setCreationTime
in interface Record
public long getLastAccessTime()
getLastAccessTime
in interface MapEntry
getLastAccessTime
in interface Record
public void setLastAccessTime(long lastAccessTime)
setLastAccessTime
in interface Record
public long getLastUpdateTime()
getLastUpdateTime
in interface MapEntry
getLastUpdateTime
in interface Record
public void setLastUpdateTime(long lastUpdateTime)
setLastUpdateTime
in interface Record
public int getHits()
public void incrementHits()
incrementHits
in interface Record
public int getBlockId()
getBlockId
in interface Record
public DistributedLock getLock()
public void setLock(DistributedLock lock)
public Collection<ValueHolder> getMultiValues()
getMultiValues
in interface Record
public void setMultiValues(Collection<ValueHolder> lsValues)
setMultiValues
in interface Record
public int getBackupOpCount()
getBackupOpCount
in interface Record
public SortedSet<VersionedBackupOp> getBackupOps()
getBackupOps
in interface Record
public void setBackupOps(SortedSet<VersionedBackupOp> backupOps)
setBackupOps
in interface Record
public long getWriteTime()
getWriteTime
in interface Record
public void setWriteTime(long writeTime)
setWriteTime
in interface Record
public long getRemoveTime()
getRemoveTime
in interface Record
public void setRemoveTime(long removeTime)
setRemoveTime
in interface Record
public boolean hasScheduledAction()
hasScheduledAction
in interface Record
public List<ScheduledAction> getScheduledActions()
getScheduledActions
in interface Record
public void setScheduledActions(List<ScheduledAction> lsScheduledActions)
setScheduledActions
in interface Record
public Map<Address,Boolean> getListeners()
getListeners
in interface Record
public void setMapListeners(Map<Address,Boolean> mapListeners)
setMapListeners
in interface Record
public int getScheduledActionCount()
getScheduledActionCount
in interface Record
public int getLockCount()
getLockCount
in interface Record
public Address getLockAddress()
getLockAddress
in interface Record
public long getLockAcquireTime()
getLockAcquireTime
in interface Record
public com.hazelcast.impl.AbstractRecord.OptionalInfo getOptionalInfo()
getOptionalInfo
in interface Record
public void setLastStoredTime(long lastStoredTime)
setLastStoredTime
in interface Record
public long getLastStoredTime()
getLastStoredTime
in interface MapEntry
getLastStoredTime
in interface Record
public boolean isLoadable()
isLoadable
in interface Record
public int hashCode()
Copyright © 2013 Hazelcast, Inc.. All rights reserved.