Package org.redisson.api
Interface RLiveObject
-
- All Superinterfaces:
RExpirable
,RExpirableAsync
,RObject
,RObjectAsync
public interface RLiveObject extends RExpirable
- Author:
- Rui Gu (https://github.com/jackygurui)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
getLiveObjectId()
Returns the value of the field that has the RId annotation.void
setLiveObjectId(Object liveObjectId)
Change the value of the field that has the RId annotation.-
Methods inherited from interface org.redisson.api.RExpirable
clearExpire, expire, expire, expireAt, expireAt, remainTimeToLive
-
Methods inherited from interface org.redisson.api.RExpirableAsync
clearExpireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
-
Methods inherited from interface org.redisson.api.RObject
addListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
-
Methods inherited from interface org.redisson.api.RObjectAsync
addListenerAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
-
-
-
-
Method Detail
-
getLiveObjectId
Object getLiveObjectId()
Returns the value of the field that has the RId annotation.- Returns:
- liveObjectId
-
setLiveObjectId
void setLiveObjectId(Object liveObjectId)
Change the value of the field that has the RId annotation. Since the liveObjectId is encoded as a part of the name of the underlying RMap, this action will result in renaming the underlying RMap based on the naming scheme specified in the REntity annotation of the instance class.- Parameters:
liveObjectId
- the liveObjectId to set- See Also:
RMap
-
-