public final class CommonsFeatures extends Features
| Constructor and Description |
|---|
CommonsFeatures()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
CommonsFeatures |
addAnalyticsConnectorPlugin(Class<? extends AnalyticsConnectorPlugin> analyticsConnectorPluginClass,
Param... params)
Adds a AnalyticsConnectorPlugin
|
protected void |
buildFeatures() |
CommonsFeatures |
withCache(Class<? extends CachePlugin> cachePluginClass,
Param... params)
Activates caches.
|
CommonsFeatures |
withNodeInfosPlugin(Class<? extends NodeInfosPlugin> nodeInfosPluginClass,
Param... params)
Adds a NodeInfosPlugin
|
CommonsFeatures |
withNodeRegistryPlugin(Class<? extends NodeRegistryPlugin> nodeRegistryPluginClass,
Param... params)
Adds a NodeRegistryPlugin
|
CommonsFeatures |
withRedisConnector(String host,
int port,
int database,
Optional<String> passwordOpt)
Adds a REDIS connector.
|
CommonsFeatures |
withScript()
Activates script with a default plugin.
|
CommonsFeatures |
withScript(Class<? extends ExpressionEvaluatorPlugin> expressionEvaluatorPluginClass,
Param... params)
Activates script with a defined plugin.
|
build, getModuleConfigBuilderpublic CommonsFeatures withScript()
public CommonsFeatures withScript(Class<? extends ExpressionEvaluatorPlugin> expressionEvaluatorPluginClass, Param... params)
expressionEvaluatorPluginClass - the type of plugin to useparams - the paramspublic CommonsFeatures withCache(Class<? extends CachePlugin> cachePluginClass, Param... params)
cachePluginClass - the cache plugin to useparams - the paramspublic CommonsFeatures withRedisConnector(String host, int port, int database, Optional<String> passwordOpt)
host - the REDIS hostport - the REDIS portpasswordOpt - the REDIS passworddatabase - the index of the REDIS databasepublic CommonsFeatures withNodeRegistryPlugin(Class<? extends NodeRegistryPlugin> nodeRegistryPluginClass, Param... params)
nodeRegistryPluginClass - the plugin to useparams - the paramspublic CommonsFeatures withNodeInfosPlugin(Class<? extends NodeInfosPlugin> nodeInfosPluginClass, Param... params)
nodeInfosPluginClass - the plugin to useparams - the paramspublic CommonsFeatures addAnalyticsConnectorPlugin(Class<? extends AnalyticsConnectorPlugin> analyticsConnectorPluginClass, Param... params)
analyticsConnectorPluginClass - the plugin to useparams - the paramsprotected void buildFeatures()
buildFeatures in class FeaturesCopyright © 2018. All Rights Reserved.