Class ReadWriteBackingMap.CacheStoreWrapper

    • Constructor Detail

      • CacheStoreWrapper

        public CacheStoreWrapper​(CacheStore store)
        Construct a CacheStoreWrapper.
        Parameters:
        store - the CacheStore to wrap
    • Method Detail

      • loadInternal

        protected ReadWriteBackingMap.Entry loadInternal​(Object binKey)
        Load the entry associated with the specified key from the underlying store.
        Specified by:
        loadInternal in class ReadWriteBackingMap.StoreWrapper
        Parameters:
        binKey - binary key whose associated value is to be loaded
        Returns:
        the entry associated with the specified key, or null if no value is available for that key
      • loadAllInternal

        protected Set loadAllInternal​(Set setBinKey)
        Load the entries associated with each of the specified binary keys from the underlying store.
        Specified by:
        loadAllInternal in class ReadWriteBackingMap.StoreWrapper
        Parameters:
        setBinKey - a set of binary keys to load
        Returns:
        a Set of entries for the specified keys
      • storeAllInternal

        protected void storeAllInternal​(Set setBinEntries)
        Store the entries in the specified set in the underlying store.
        Specified by:
        storeAllInternal in class ReadWriteBackingMap.StoreWrapper
        Parameters:
        setBinEntries - the set of entries to be stored
      • eraseAllInternal

        protected void eraseAllInternal​(Set setBinEntries)
        Remove the specified entries from the underlying store.
        Specified by:
        eraseAllInternal in class ReadWriteBackingMap.StoreWrapper
        Parameters:
        setBinEntries - the set entries to be removed from the store
      • getStore

        public Object getStore()
        Return the cache store object to which this wrapper delegates.
        Specified by:
        getStore in class ReadWriteBackingMap.StoreWrapper
        Returns:
        the cache store object to which this wrapper delegates
      • getCacheStore

        public CacheStore getCacheStore()
        The wrapped CacheStore.
        Returns:
        the underlying CacheStore this CacheStoreWrapper wraps
      • newSpan

        protected com.tangosol.internal.tracing.Span.Builder newSpan​(String sOperation)
        Return a Span.Builder for the specified operation.
        Parameters:
        sOperation - the operation name
        Returns:
        the Span.Builder
      • newSpan

        protected com.tangosol.internal.tracing.Span.Builder newSpan​(String sOperation,
                                                                     ReadWriteBackingMap.Entry entry)
        Return a Span.Builder for a given operation on an entry.
        Parameters:
        sOperation - the operation name
        entry - the entry
        Returns:
        the Span.Builder
      • newSpan

        protected com.tangosol.internal.tracing.Span.Builder newSpan​(String sOperation,
                                                                     Set<ReadWriteBackingMap.Entry> setEntries)
        Return a Span.Builder for a given operation on a set of entries.
        Parameters:
        sOperation - the operation name
        setEntries - the set of entries
        Returns:
        the Span.Builder
      • toString

        public String toString()
        Return a String representation of the CacheStoreWrapper object that will be used as a part of the write-behind thread name.
        Overrides:
        toString in class Object
        Returns:
        a String representation of the CacheStoreWrapper object