Class SpaceEntryLease<T>

java.lang.Object
com.gigaspaces.internal.lease.SpaceLease
com.gigaspaces.internal.lease.SpaceEntryLease<T>
All Implemented Interfaces:
Textualizable, LeaseContext<T>, Lease

public class SpaceEntryLease<T> extends SpaceLease implements LeaseContext<T>
Since:
9.0.0
Author:
Niv Ingberg
  • Constructor Details

  • Method Details

    • getLeaseObjectType

      protected int getLeaseObjectType()
      Specified by:
      getLeaseObjectType in class SpaceLease
    • getVersion

      public int getVersion()
      Description copied from interface: LeaseContext
      Returns the version of written \ updated entry.
      Specified by:
      getVersion in interface LeaseContext<T>
      Returns:
      version of written \ updated entry.
    • getObject

      public T getObject()
      Description copied from interface: LeaseContext
      returns 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_UPDATE is used, otherwise null)
    • Specified by:
      getObject in interface LeaseContext<T>
      Returns:
      the associated object.
    • setObject

      public void setObject(T object)