Package org.nuxeo.runtime.kv
Interface KeyValueStoreProvider
- 
- All Superinterfaces:
- KeyValueStore
 - All Known Implementing Classes:
- AbstractKeyValueStoreProvider,- MemKeyValueStore,- MongoDBKeyValueStore,- RedisKeyValueStore,- SQLKeyValueStore
 
 public interface KeyValueStoreProvider extends KeyValueStore Key/Value Store SPI.- Since:
- 9.1
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()Clears the content of this Key/Value store provider.voidclose()Closes this Key/Value store provider.voidinitialize(KeyValueStoreDescriptor descriptor)Initializes this Key/Value store provider.Stream<String>keyStream()Returns aStreamof the keys contained in this Key/Value store provider.Stream<String>keyStream(String prefix)Returns aStreamof the keys with the given prefix contained in this Key/Value store provider.- 
Methods inherited from interface org.nuxeo.runtime.kv.KeyValueStoreaddAndGet, compareAndSet, compareAndSet, compareAndSet, compareAndSet, get, get, getLong, getLongs, getString, getStrings, put, put, put, put, put, put, setTTL
 
- 
 
- 
- 
- 
Method Detail- 
initializevoid initialize(KeyValueStoreDescriptor descriptor) Initializes this Key/Value store provider.- Parameters:
- descriptor- the store provider descriptor
 
 - 
keyStreamStream<String> keyStream() Returns aStreamof the keys contained in this Key/Value store provider.This operation may be slow and should only be used for management or debug purposes. - Returns:
- the stream of keys
- Since:
- 9.3
 
 - 
keyStreamStream<String> keyStream(String prefix) Returns aStreamof the keys with the given prefix contained in this Key/Value store provider.This operation may be slow and should only be used for management or debug purposes. - Returns:
- the stream of keys
- Since:
- 10.3
 
 - 
closevoid close() Closes this Key/Value store provider.
 - 
clearvoid clear() Clears the content of this Key/Value store provider.
 
- 
 
-