Interface ObjectResource

All Superinterfaces:
AutoCloseable

public interface ObjectResource extends AutoCloseable
  • Method Summary

    Modifier and Type
    Method
    Description
    org.aksw.commons.txn.impl.PathDiffState
    Binds the lifetime of the content to this object: Claimed content will not be evicted from the content cache and will thus not spill to disk.
     
    void
    save(Object obj)
     

    Methods inherited from interface java.lang.AutoCloseable

    close
  • Method Details

    • fetchRecencyStatus

      org.aksw.commons.txn.impl.PathDiffState fetchRecencyStatus()
      Binds the lifetime of the content to this object: Claimed content will not be evicted from the content cache and will thus not spill to disk. Content will remain in memory which prevents possible throttling (quick successions of access, loading, eviction causing the next access to load again) Calling AutoCloseable.close() unclaims content.
    • loadNewInstance

      Object loadNewInstance()
    • save

      void save(Object obj)