Package com.gigaspaces.internal.lease
Class SpaceEntryLease<T>
java.lang.Object
com.gigaspaces.internal.lease.SpaceLease
com.gigaspaces.internal.lease.SpaceEntryLease<T>
- All Implemented Interfaces:
Textualizable,LeaseContext<T>,Lease
- Since:
- 9.0.0
- Author:
- Niv Ingberg
-
Field Summary
Fields inherited from class com.gigaspaces.internal.lease.SpaceLease
_expirationTime, _routingValue, _serialFormat, _spaceProxy, _typeName, _uid -
Constructor Summary
ConstructorsConstructorDescriptionSpaceEntryLease(IDirectSpaceProxy spaceProxy, String typeName, String uid, int version, Object routingValue, long expiration, T prevEntry) -
Method Summary
Modifier and TypeMethodDescriptionprotected intreturns the previous value associated with this update-or-write operation.intReturns the version of written \ updated entry.voidMethods inherited from class com.gigaspaces.internal.lease.SpaceLease
canBatch, canBatch, cancel, createLeaseMap, getExpiration, getSerialFormat, getTypeName, getUID, renew, setSerialFormat, toString, toTextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.jini.core.lease.Lease
canBatch, cancel, createLeaseMap, getExpiration, getSerialFormat, renew, setSerialFormatMethods inherited from interface com.j_spaces.core.LeaseContext
getUID
-
Constructor Details
-
SpaceEntryLease
public SpaceEntryLease(IDirectSpaceProxy spaceProxy, String typeName, String uid, int version, Object routingValue, long expiration, T prevEntry)
-
-
Method Details
-
getLeaseObjectType
protected int getLeaseObjectType()- Specified by:
getLeaseObjectTypein classSpaceLease
-
getVersion
public int getVersion()Description copied from interface:LeaseContextReturns the version of written \ updated entry.- Specified by:
getVersionin interfaceLeaseContext<T>- Returns:
- version of written \ updated entry.
-
getObject
Description copied from interface:LeaseContextreturns the previous value associated with this update-or-write operation.- null, on a successful write
- previous value, on successful update (Only if
WriteModifiers.RETURN_PREV_ON_UPDATEis used, otherwise null)- Specified by:
getObjectin interfaceLeaseContext<T>- Returns:
- the associated object.
-
setObject
-