Interface HttpCache

All Superinterfaces:
ProfileService

public interface HttpCache extends ProfileService
An HTTP cache service.

By default HTTP cache stores the resources fetched from the web on a disk or in the memory. Chromium itself decides how to cache the resources for optimal performance.

The memory cache stores and loads the resources to and from the process memory – RAM. It is a fast but non-persistent way.

The disk cache is persistent. The cached resources are stored and loaded to and from the disk. The disk cache is stored in the Cache folder in the User Data directory.

  • Method Summary

    Modifier and Type
    Method
    Description
    Marks all the cache entries for deletion.

    Methods inherited from interface com.teamdev.jxbrowser.profile.ProfileService

    profile
  • Method Details

    • clear

      Marks all the cache entries for deletion.
      Returns:
      a new CompletableFuture that is completed when all the cache entries have been marked for deletion. If the profile is deleted or its engine is closed during clearing cache, the future will be canceled
      Throws:
      ObjectClosedException - when the profile is deleted or its engine is closed
      Since:
      7.9