Interface TransientStoreProvider
-
- All Superinterfaces:
TransientStore
- All Known Implementing Classes:
AbstractTransientStore
,KeyValueBlobTransientStore
,RedisTransientStore
,SimpleTransientStore
public interface TransientStoreProvider extends TransientStore
Transient Store SPI.- Since:
- 9.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description void
doGC()
Runs garbage collecting to delete the file system resources that are associated with entries that were removed.long
getStorageSize()
Returns the size (in bytes) of the disk storage used for blobs.default int
getStorageSizeMB()
Deprecated.since 9.3 because it is imprecise, usegetStorageSize()
insteadvoid
init(TransientStoreConfig config)
Initializes the store from the givenconfig
.default Set<String>
keySet()
Returns the set of keys for all entries.Stream<String>
keyStream()
Returns aStream
of keys for all entries.void
removeAll()
Removes all entries from the store.void
shutdown()
Shuts down the store.-
Methods inherited from interface org.nuxeo.ecm.core.transientstore.api.TransientStore
exists, getBlobs, getParameter, getParameters, getSize, isCompleted, putBlobs, putParameter, putParameters, release, remove, setCompleted
-
-
-
-
Method Detail
-
init
void init(TransientStoreConfig config)
Initializes the store from the givenconfig
.- Since:
- 7.2
-
shutdown
void shutdown()
Shuts down the store.- Since:
- 7.2
-
getStorageSizeMB
@Deprecated default int getStorageSizeMB()
Deprecated.since 9.3 because it is imprecise, usegetStorageSize()
insteadReturns the size (in MB) of the disk storage used for blobs.- Returns:
- the number of MB (rounded down) used by stored blobs
- Since:
- 7.2
-
getStorageSize
long getStorageSize()
Returns the size (in bytes) of the disk storage used for blobs.- Returns:
- the number of bytes used by stored blobs
- Since:
- 9.3
-
doGC
void doGC()
Runs garbage collecting to delete the file system resources that are associated with entries that were removed.- Since:
- 7.2
-
removeAll
void removeAll()
Removes all entries from the store.- Since:
- 7.2
-
-