-
- All Known Subinterfaces:
InternalStorageExtension
public interface StorageExtensionAn extension that provides a storage backend for anHttpCache.
-
-
Method Summary
Static Methods Modifier and Type Method Description static StorageExtensioninMemory(long maxSize)Returns aStorageExtensionfor saving data in memory, not exceeding the given size.static StorageExtensiononDisk(java.nio.file.Path directory, long maxSize)Returns aStorageExtensionfor saving data on disk under the given directory, not exceeding the given size.
-
-
-
Method Detail
-
inMemory
static StorageExtension inMemory(long maxSize)
Returns aStorageExtensionfor saving data in memory, not exceeding the given size.
-
onDisk
static StorageExtension onDisk(java.nio.file.Path directory, long maxSize)
Returns aStorageExtensionfor saving data on disk under the given directory, not exceeding the given size.- Throws:
java.lang.IllegalArgumentException- ifmaxSizeis not positive
-
-