Package org.redisson.api
Interface RLiveObject
- All Superinterfaces:
RExpirable
,RExpirableAsync
,RObject
,RObjectAsync
- Author:
- Rui Gu (https://github.com/jackygurui)
-
Method Summary
Modifier and TypeMethodDescriptionReturns 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, expire, expireAt, expireAt, expireIfGreater, expireIfGreater, expireIfLess, expireIfLess, expireIfNotSet, expireIfNotSet, expireIfSet, expireIfSet, getExpireTime, remainTimeToLive
Methods inherited from interface org.redisson.api.RExpirableAsync
clearExpireAsync, expireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, expireIfGreaterAsync, expireIfGreaterAsync, expireIfLessAsync, expireIfLessAsync, expireIfNotSetAsync, expireIfNotSetAsync, expireIfSetAsync, expireIfSetAsync, getExpireTimeAsync, remainTimeToLiveAsync
Methods inherited from interface org.redisson.api.RObject
addListener, copy, copy, copy, copyAndReplace, copyAndReplace, 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, copyAndReplaceAsync, copyAndReplaceAsync, copyAsync, copyAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
-
Method Details
-
getLiveObjectId
Object getLiveObjectId()Returns the value of the field that has the RId annotation.- Returns:
- liveObjectId
-
setLiveObjectId
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:
-
getLiveObjectLiveMap
RMap getLiveObjectLiveMap()
-