Interface StorageExtension
- All Known Subinterfaces:
InternalStorageExtension
public interface StorageExtension
An extension that provides a storage backend for an
HttpCache.-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic StorageExtensioninMemory(long maxSize) Returns aStorageExtensionfor saving data in memory, not exceeding the given size.static StorageExtensionReturns aStorageExtensionfor saving data on disk under the given directory, not exceeding the given size.
-
Method Details
-
inMemory
Returns aStorageExtensionfor saving data in memory, not exceeding the given size. -
onDisk
Returns aStorageExtensionfor saving data on disk under the given directory, not exceeding the given size.- Throws:
IllegalArgumentException- ifmaxSizeis not positive
-