Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question

looking for an API to get the REMAINING TO LIVE in the cache for an object


I am trying the read the remaining-time-to-expire of an object in the cache. I found the following APIs, but there isn't much description and distinction in the java API docs.

Could somebody give a brief description of each of these attributes :

+_static fields :_+





ENUM ReplicationOperationType.EXTEND_LEASE

ENUM ReplicationOperationType.LEASE_EXPIRATION

annotation - SpaceLeaseExpiration

annotation - BeforeRemoveByLease

annotation - BeforeCleanSpace

annotation - NotifyLease - renewExpiration

API - defaultTimeToLive(long defaultTimeToLive)

API - setTimeToLive(long time)

API - getAdminTimestamp()

API - getBatchTime()

API - getDate(int columnIndex) throws SQLException

API - getDefaultTimeToLive() of GigaMap

API - getDefaultTimeToLive() of DefaultGigaMap

API - getExpiration()

API - renew(long duration) throws IllegalArgumentException, LeaseDeniedException

API - cancel()

API - getExpirationTimeInterval()

API - getExpiryTime()

API - getLeaseDuration()

API - hasLeaseRenewalManager()

API - getRenewExpiration()

API - getTimeToLive()

API - isAlive()

API - setAutoRenew(boolean renew, net.jini.lease.LeaseListener listener, long renewExpiration, long renewDuration, long renewRTT)

API - isAutoRenew()

API - isNotifyLeaseExpire()

API - leaseDuration(long leaseDuration)

API - renewExpiration()

API - setLease(long lease)

API - getDefaultTimeToLive()

API - beforeTime(long timestamp)

-darth vader

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=3823]{quote}

asked 2012-02-20 18:00:51 -0500

avaneeshbm gravatar image

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-02-21 06:16:12 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2012-02-20 18:00:51 -0500

Seen: 60 times

Last updated: Feb 21 '12