Class SoftReferenceObjectCache

  • All Implemented Interfaces:
    ObjectCache

    public abstract class SoftReferenceObjectCache
    extends java.lang.Object
    implements ObjectCache
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract java.lang.Object createFromKey​(java.lang.Object key)  
      java.lang.Object find​(java.lang.Object key)  
      protected boolean isDirty​(java.lang.Object key, java.lang.Object cached)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SoftReferenceObjectCache

        public SoftReferenceObjectCache()
    • Method Detail

      • find

        public java.lang.Object find​(java.lang.Object key)
                              throws java.lang.Exception
        Specified by:
        find in interface ObjectCache
        Throws:
        java.lang.Exception
      • isDirty

        protected boolean isDirty​(java.lang.Object key,
                                  java.lang.Object cached)
      • createFromKey

        protected abstract java.lang.Object createFromKey​(java.lang.Object key)
                                                   throws java.lang.Exception
        Throws:
        java.lang.Exception