Class CacheEntry

All Implemented Interfaces:
IGSEntry, Serializable
Direct Known Subclasses:
EntryAdapter

public class CacheEntry extends EntryImpl
CacheEntry (implements IGSEntry) which is passed between CacheAdapter and CacheStorage.
Since:
5.1
Version:
1.0
Author:
moran
See Also:
  • Constructor Details

    • CacheEntry

      public CacheEntry(IEntryHolder entryHolder, ITypeDesc typeDesc)
      Constructs CacheEntry from IEntryHolder and TypeTableEntry.
      Parameters:
      entryHolder - underlying entry holder
      typeDesc - underlying entry type information
    • CacheEntry

      public CacheEntry()
      Default constructor
  • Method Details

    • getClassName

      public String getClassName()
      Description copied from class: AbstractEntryType
      Entry class Name.
      Specified by:
      getClassName in interface IGSEntry
      Overrides:
      getClassName in class EntryImpl
      Returns:
      Returns the Entry class Name.
    • setClassName

      public void setClassName(String className)
      Set the class name representing the underlying entry.
      Parameters:
      className - class name representing this entry.
    • getEntry

      public Entry getEntry(IJSpace space) throws UnusableEntryException
      Overrides:
      getEntry in class EntryImpl
      Throws:
      UnusableEntryException
    • getMapEntry

      public Map.Entry getMapEntry()
      Description copied from interface: IGSEntry
      Returns a Map.Entry (key-value pair) representation of this entity. Relevant when interacting with the Space using Map API; otherwise a null is returned.
      Specified by:
      getMapEntry in interface IGSEntry
      Overrides:
      getMapEntry in class EntryImpl
      Returns:
      a Map.Entry representation of this entity; null if no representation.
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      public static String toString(IGSEntry entry)
      Returns a String representation of an IGSEntry.
      Parameters:
      entry - IGSEntry to represent.
      Returns:
      String representation of this IGSEntry.