Package org.nuxeo.runtime.kv
Class KeyValueServiceImpl
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.runtime.kv.KeyValueServiceImpl
- All Implemented Interfaces:
KeyValueService,Adaptable,Component,Extensible,TimestampedService
Implementation for the Key/Value Service.
- Since:
- 9.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated, for removal: This API element is subject to removal in a future version.static final Stringprotected Map<String, KeyValueStoreProvider> static final StringFields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintThe component notification order forComponent.start(ComponentContext).getKeyValueStore(String name) Gets the Key/Value store with the given name.voidstop(ComponentContext context) Stop the component.Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, start, unregister, unregisterContribution, unregisterExtension
-
Field Details
-
XP_CONFIG
- See Also:
-
DEFAULT_STORE_ID
- See Also:
-
APPLICATION_STARTED_ORDER
Deprecated, for removal: This API element is subject to removal in a future version.since 2025.0, useComponentStartOrders.KVinstead- See Also:
-
providers
-
-
Constructor Details
-
KeyValueServiceImpl
public KeyValueServiceImpl()
-
-
Method Details
-
getApplicationStartedOrder
public int getApplicationStartedOrder()Description copied from interface:ComponentThe component notification order forComponent.start(ComponentContext).Components are notified in increasing order. Order 1000 is the default order for components that don't care. Order 100 is the repository initialization.
- Specified by:
getApplicationStartedOrderin interfaceComponent- Returns:
- the order, 1000 by default
-
stop
Description copied from interface:ComponentStop the component.- Specified by:
stopin interfaceComponent- Overrides:
stopin classDefaultComponent- Throws:
InterruptedException
-
getKeyValueStore
Description copied from interface:KeyValueServiceGets the Key/Value store with the given name.If the store is not found, the default store is returned.
- Specified by:
getKeyValueStorein interfaceKeyValueService- Parameters:
name- the store name- Returns:
- the store with the given name, or the default store
-
ComponentStartOrders.KVinstead