Class LocalSessionCacheWriter

    • Constructor Detail

      • LocalSessionCacheWriter

        public LocalSessionCacheWriter​(Region<String,​javax.servlet.http.HttpSession> backingRegion)
    • Method Detail

      • beforeUpdate

        public void beforeUpdate​(EntryEvent<String,​javax.servlet.http.HttpSession> event)
                          throws CacheWriterException
        Description copied from interface: CacheWriter
        Called before an entry is updated. The entry update is initiated by a put or a get that causes the loader to update an existing entry. The entry previously existed in the cache where the operation was initiated, although the old value may have been null. The entry being updated may or may not exist in the local cache where the CacheWriter is installed.
        Specified by:
        beforeUpdate in interface CacheWriter<String,​javax.servlet.http.HttpSession>
        Overrides:
        beforeUpdate in class CacheWriterAdapter<String,​javax.servlet.http.HttpSession>
        Parameters:
        event - an EntryEvent that provides information about the operation in progress
        Throws:
        CacheWriterException - if thrown will abort the operation in progress, and the exception will be propagated back to caller that initiated the operation
        See Also:
        Region.put(Object, Object), Region.get(Object)