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
Modifier and TypeFieldDescriptionstatic final int
static final String
protected Map<String,
KeyValueStoreProvider> static final String
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
The component notification order forComponent.start(ComponentContext)
.getKeyValueStore
(String name) Gets the Key/Value store with the given name.void
stop
(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
public static final int APPLICATION_STARTED_ORDER- See Also:
-
providers
-
-
Constructor Details
-
KeyValueServiceImpl
public KeyValueServiceImpl()
-
-
Method Details
-
getApplicationStartedOrder
public int getApplicationStartedOrder()Description copied from interface:Component
The 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:
getApplicationStartedOrder
in interfaceComponent
- Returns:
- the order, 1000 by default
-
stop
Description copied from interface:Component
Stop the component.- Specified by:
stop
in interfaceComponent
- Overrides:
stop
in classDefaultComponent
- Throws:
InterruptedException
-
getKeyValueStore
Description copied from interface:KeyValueService
Gets the Key/Value store with the given name.If the store is not found, the default store is returned.
- Specified by:
getKeyValueStore
in interfaceKeyValueService
- Parameters:
name
- the store name- Returns:
- the store with the given name, or the default store
-