Class InternalClassLoaderAwareCache

    • Constructor Detail

      • InternalClassLoaderAwareCache

        public InternalClassLoaderAwareCache​(InternalEhcache cache,
                                             java.lang.ClassLoader classLoader)
        Constructor
        Parameters:
        cache - wrapped cache
        classLoader - loader to set Thread context loader to for duration of cache operation
    • Method Detail

      • removeAndReturnElement

        public Element removeAndReturnElement​(java.lang.Object arg0)
                                       throws java.lang.IllegalStateException
        Removes and returns the element associated with the key
        Specified by:
        removeAndReturnElement in interface InternalEhcache
        Parameters:
        arg0 - the key of the element to operate on
        Returns:
        element the removed element associated with the key, null if no mapping exists
        Throws:
        java.lang.IllegalStateException - if the cache is not Status.STATUS_ALIVE
      • recalculateSize

        public void recalculateSize​(java.lang.Object arg0)
        Recalculate the size of the element mapped to the key
        Specified by:
        recalculateSize in interface InternalEhcache
        Parameters:
        arg0 - the key