public class TransientStorageComponent extends DefaultComponent implements TransientStoreService
TransientStoreService and managing the underlying extension point| Modifier and Type | Field and Description | 
|---|---|
static String | 
DEFAULT_STORE_NAME  | 
static String | 
EP_STORE  | 
protected Map<String,TransientStoreProvider> | 
stores  | 
lastModified, name| Constructor and Description | 
|---|
TransientStorageComponent()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
cleanUpStores()  | 
void | 
deactivate(ComponentContext context)
Deactivates the component. 
 | 
void | 
doGC()
Triggers Garbage collecting of all  
TransientStore | 
protected TransientStoreConfig | 
getDefaultDescriptor()  | 
TransientStore | 
getStore(String name)
Retrieves a  
TransientStore by it's name. | 
void | 
start(ComponentContext context)
Start the component. 
 | 
void | 
stop(ComponentContext context)
Stop the component. 
 | 
protected boolean | 
unregister(String xp,
          Descriptor descriptor)  | 
activate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, unregisterContribution, unregisterExtensionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplicationStarted, getApplicationStartedOrderprotected Map<String,TransientStoreProvider> stores
public static final String EP_STORE
public static final String DEFAULT_STORE_NAME
public TransientStorageComponent()
public TransientStore getStore(String name)
TransientStoreServiceTransientStore by it's name.
 
 If the TransientStore is not found, returns the default one.
getStore in interface TransientStoreServicename - the name of the target TransientStoreTransientStore or the default one if not foundprotected TransientStoreConfig getDefaultDescriptor()
public void doGC()
TransientStoreServiceTransientStoredoGC in interface TransientStoreServiceprotected boolean unregister(String xp, Descriptor descriptor)
unregister in class DefaultComponentpublic void start(ComponentContext context)
Componentstart in interface Componentstart in class DefaultComponentpublic void stop(ComponentContext context) throws InterruptedException
Componentstop in interface Componentstop in class DefaultComponentInterruptedExceptionpublic void deactivate(ComponentContext context)
ComponentThis method is called by the runtime when a component is deactivated.
deactivate in interface Componentdeactivate in class DefaultComponentcontext - the runtime contextpublic void cleanUpStores()
Copyright © 2019 Nuxeo. All rights reserved.