Class AbstractSpaceItem

java.lang.Object
com.gigaspaces.internal.server.storage.AbstractSpaceItem
All Implemented Interfaces:
ISpaceItem, Textualizable, ILockObject
Direct Known Subclasses:
EntryHolder, TemplateHolder

public abstract class AbstractSpaceItem extends Object implements ISpaceItem, Textualizable
Since:
7.0
Author:
Niv Ingberg
  • Constructor Details

    • AbstractSpaceItem

      protected AbstractSpaceItem(IServerTypeDesc typeDesc, String uid, long scn, boolean isTransient)
    • AbstractSpaceItem

      protected AbstractSpaceItem(IEntryHolder other)
  • Method Details

    • getServerTypeDesc

      public IServerTypeDesc getServerTypeDesc()
      Specified by:
      getServerTypeDesc in interface ISpaceItem
    • getClassName

      public String getClassName()
      Specified by:
      getClassName in interface ISpaceItem
    • getUID

      public String getUID()
      Description copied from interface: ILockObject
      get the uid for the subject
      Specified by:
      getUID in interface ILockObject
      Returns:
      the uid
    • setUID

      public void setUID(String uid)
    • getSCN

      public long getSCN()
      Specified by:
      getSCN in interface ISpaceItem
    • setSCN

      public void setSCN(long scn)
    • getExpirationTime

      public long getExpirationTime()
    • setExpirationTime

      public abstract void setExpirationTime(long expirationTime)
      Specified by:
      setExpirationTime in interface ISpaceItem
    • getVersionID

      public int getVersionID()
    • isTransient

      public boolean isTransient()
      Specified by:
      isTransient in interface ISpaceItem
    • setTransient

      public void setTransient(boolean _transient)
    • isMaybeUnderXtn

      public boolean isMaybeUnderXtn()
      Specified by:
      isMaybeUnderXtn in interface ISpaceItem
    • setMaybeUnderXtn

      public void setMaybeUnderXtn(boolean maybeUnderXtn)
      Specified by:
      setMaybeUnderXtn in interface ISpaceItem
    • hasWaitingFor

      public boolean hasWaitingFor()
      Specified by:
      hasWaitingFor in interface ISpaceItem
    • setHasWaitingFor

      public void setHasWaitingFor(boolean hasWaitingFor)
      Specified by:
      setHasWaitingFor in interface ISpaceItem
    • isDeleted

      public boolean isDeleted()
      Specified by:
      isDeleted in interface ISpaceItem
    • setDeleted

      public void setDeleted(boolean isDeleted)
      Specified by:
      setDeleted in interface ISpaceItem
    • getFlag

      protected boolean getFlag(byte mask)
    • setFlag

      protected void setFlag(byte mask, boolean value)
    • isDummyLease

      public boolean isDummyLease()
      Specified by:
      isDummyLease in interface ISpaceItem
    • isDummyLeaseAndNotExpired

      public boolean isDummyLeaseAndNotExpired()
      Specified by:
      isDummyLeaseAndNotExpired in interface ISpaceItem
    • setDummyLease

      public void setDummyLease()
      Specified by:
      setDummyLease in interface ISpaceItem
    • dump

      public void dump(org.slf4j.Logger logger, String msg)
    • isLockSubject

      public boolean isLockSubject()
      if entryHolder is used as lockObject (for example in ALL_IN_CACHE) - its the lock subject itself
      Specified by:
      isLockSubject in interface ILockObject
      Returns:
      true if is the subject itself
    • isShadow

      public boolean isShadow()
      IEntryHolder Members *
    • hasShadow

      public boolean hasShadow()
    • hasShadow

      public abstract boolean hasShadow(boolean safeEntry)
    • getNotifyType

      public int getNotifyType()
    • getHandback

      public MarshalledObject getHandback()
    • getOrder

      public int getOrder()
    • setOrder

      public void setOrder(int order)
    • getRoutingValue

      public Object getRoutingValue()
    • getEntryId

      public Object getEntryId()
    • toText

      public void toText(Textualizer textualizer)
      Specified by:
      toText in interface Textualizable
    • toString

      public String toString()
      Overrides:
      toString in class Object