Package com.gigaspaces.internal.lease
Class SpaceNotifyLease
java.lang.Object
com.gigaspaces.internal.lease.SpaceLease
com.gigaspaces.internal.lease.SpaceNotifyLease
- All Implemented Interfaces:
Textualizable,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
ConstructorsConstructorDescriptionSpaceNotifyLease(IDirectSpaceProxy spaceProxy, String typeName, String uid, Object routingValue, long expiration, ManagedRemoteEventListener listener, GSEventRegistration reg) -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Used by the lease holder to indicate that it is no longer interested in the resource or information held by the lease.protected intMethods inherited from class com.gigaspaces.internal.lease.SpaceLease
canBatch, canBatch, createLeaseMap, getExpiration, getSerialFormat, getTypeName, getUID, renew, setSerialFormat, toString, toText
-
Constructor Details
-
SpaceNotifyLease
public SpaceNotifyLease(IDirectSpaceProxy spaceProxy, String typeName, String uid, Object routingValue, long expiration, ManagedRemoteEventListener listener, GSEventRegistration reg) throws RemoteException - Throws:
RemoteException
-
-
Method Details
-
getLeaseObjectType
protected int getLeaseObjectType()- Specified by:
getLeaseObjectTypein classSpaceLease
-
cancel
Description copied from interface:LeaseUsed by the lease holder to indicate that it is no longer interested in the resource or information held by the lease. If the leased information or resource could cause a callback to the lease holder (or some other object on behalf of the lease holder), the lease grantor should not issue such a callback after the lease has been cancelled. The overall effect of a cancel call is the same as lease expiration, but instead of happening at the end of a pre-agreed duration it happens immediately.- Specified by:
cancelin interfaceLease- Overrides:
cancelin classSpaceLease- Throws:
UnknownLeaseException- the lease being cancelled is unknown to the lease grantorRemoteException
-
getEventRegistration
-