public class RedisComponent extends DefaultComponent implements RedisAdmin
| Modifier and Type | Field and Description | 
|---|---|
protected String | 
delsha  | 
protected RedisExecutor | 
executor  | 
static String | 
XP_CONFIG  | 
lastModified, name| Constructor and Description | 
|---|
RedisComponent()  | 
| Modifier and Type | Method and Description | 
|---|---|
Long | 
clear(String pattern)
Clear keys in redis 
 | 
<T> T | 
getAdapter(Class<T> adapter)
Returns an object which is an instance of the given class associated with this object. 
 | 
int | 
getApplicationStartedOrder()
The component notification order for  
Component.applicationStarted(org.nuxeo.runtime.model.ComponentContext). | 
RedisPoolDescriptor | 
getConfig()  | 
String | 
load(String bundleName,
    String scriptName)
Load script in redis 
 | 
String | 
namespace(String... names)  | 
void | 
start(ComponentContext context)
Start the component. 
 | 
void | 
stop(ComponentContext context)
Stop the component. 
 | 
activate, deactivate, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, unregister, unregisterContribution, unregisterExtensionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplicationStartedpublic static final String XP_CONFIG
protected volatile RedisExecutor executor
public RedisComponent()
public RedisPoolDescriptor getConfig()
getConfig in interface RedisAdminpublic void start(ComponentContext context)
Componentstart in interface Componentstart in class DefaultComponentpublic void stop(ComponentContext context) throws InterruptedException
Componentstop in interface Componentstop in class DefaultComponentInterruptedExceptionpublic int getApplicationStartedOrder()
ComponentComponent.applicationStarted(org.nuxeo.runtime.model.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.
getApplicationStartedOrder in interface Componentpublic Long clear(String pattern)
RedisAdminclear in interface RedisAdminpublic String load(String bundleName, String scriptName)
RedisAdminload in interface RedisAdminpublic <T> T getAdapter(Class<T> adapter)
Adaptablenull
 if no such object can be found.getAdapter in interface AdaptablegetAdapter in class DefaultComponentadapter - the adapter class to look upnull if this object does not have an adapter for
         the given classpublic String namespace(String... names)
namespace in interface RedisAdminCopyright © 2019 Nuxeo. All rights reserved.