Interface WriteBehindProvider

    • Method Detail

      • createWriteBehindLoaderWriter

        <K,​V> CacheLoaderWriter<K,​V> createWriteBehindLoaderWriter​(CacheLoaderWriter<K,​V> cacheLoaderWriter,
                                                                               WriteBehindConfiguration<?> configuration)
        Creates write-behind decorated CacheLoaderWriter according to the given configuration.
        Type Parameters:
        K - the key type for the loader writer
        V - the value type for the loader writer
        Parameters:
        cacheLoaderWriter - the CacheLoaderWriter to decorate
        configuration - the write-behind configuration
        Returns:
        the write-behind decorated loader writer
      • releaseWriteBehindLoaderWriter

        void releaseWriteBehindLoaderWriter​(CacheLoaderWriter<?,​?> cacheLoaderWriter)
        Releases a write-behind decorator when the associated Cache is finished with it.
        Parameters:
        cacheLoaderWriter - the CacheLoaderWriter to release