Class DiskLruHttpCacheStore

  • All Implemented Interfaces:
    com.apollographql.apollo.api.cache.http.HttpCacheStore

    public final class DiskLruHttpCacheStore
    extends java.lang.Object
    implements com.apollographql.apollo.api.cache.http.HttpCacheStore
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.apollographql.apollo.api.cache.http.HttpCacheRecord cacheRecord​(java.lang.String cacheKey)  
      com.apollographql.apollo.api.cache.http.HttpCacheRecordEditor cacheRecordEditor​(java.lang.String cacheKey)  
      void delete()  
      void remove​(java.lang.String cacheKey)  
      • Methods inherited from class java.lang.Object

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

      • DiskLruHttpCacheStore

        public DiskLruHttpCacheStore​(@NotNull
                                     java.io.File directory,
                                     long maxSize)
      • DiskLruHttpCacheStore

        public DiskLruHttpCacheStore​(@NotNull
                                     FileSystem fileSystem,
                                     @NotNull
                                     java.io.File directory,
                                     long maxSize)
    • Method Detail

      • cacheRecord

        public com.apollographql.apollo.api.cache.http.HttpCacheRecord cacheRecord​(@NotNull
                                                                                   java.lang.String cacheKey)
                                                                            throws java.io.IOException
        Specified by:
        cacheRecord in interface com.apollographql.apollo.api.cache.http.HttpCacheStore
        Throws:
        java.io.IOException
      • cacheRecordEditor

        public com.apollographql.apollo.api.cache.http.HttpCacheRecordEditor cacheRecordEditor​(@NotNull
                                                                                               java.lang.String cacheKey)
                                                                                        throws java.io.IOException
        Specified by:
        cacheRecordEditor in interface com.apollographql.apollo.api.cache.http.HttpCacheStore
        Throws:
        java.io.IOException
      • delete

        public void delete()
                    throws java.io.IOException
        Specified by:
        delete in interface com.apollographql.apollo.api.cache.http.HttpCacheStore
        Throws:
        java.io.IOException
      • remove

        public void remove​(@NotNull
                           java.lang.String cacheKey)
                    throws java.io.IOException
        Specified by:
        remove in interface com.apollographql.apollo.api.cache.http.HttpCacheStore
        Throws:
        java.io.IOException