类的使用
org.redkale.util.AnyValue
-
使用AnyValue的程序包 程序包 说明 org.redkale.boot 提供Redkale服务器的启动、初始化和加载功能org.redkale.cached.spi org.redkale.cluster.spi org.redkale.convert 提供数据的序列化和反解析功能org.redkale.locked.spi org.redkale.mq MQ服务包org.redkale.mq.spi org.redkale.net 网络TCP/UDP基础服务包org.redkale.net.http HTTP协议包,提供HTTP协议服务器org.redkale.net.sncp SNCP协议包,提供SNCP协议服务器org.redkale.props.spi org.redkale.scheduled.spi org.redkale.service Service接口和模式配置包org.redkale.source 数据源(数据库、缓存)操作包org.redkale.source.spi org.redkale.util Redkale工具包 -
-
org.redkale.boot中AnyValue的使用
声明为AnyValue的org.redkale.boot中的字段 修饰符和类型 字段 说明 protected AnyValueNodeServer. serverConf返回AnyValue的org.redkale.boot中的方法 修饰符和类型 方法 说明 AnyValueApplication. getAppConfig()AnyValueClassFilter.FilterEntry. getProperty()AnyValueNodeServer. getServerConf()参数类型为AnyValue的org.redkale.boot中的方法 修饰符和类型 方法 说明 booleanClassFilter. accept(AnyValue property, Class clazz, boolean autoscan)判断class是否有效booleanClassFilter. accept(AnyValue property, String className)判断class是否有效static <T extends NodeServer>
NodeServerNodeServer. create(Class<T> clazz, Application application, AnyValue serconf)static NodeServerNodeSncpServer. createNodeServer(Application application, AnyValue serconf)voidClassFilter. filter(AnyValue property, String clazzName, boolean autoscan)过滤指定的classvoidClassFilter. filter(AnyValue property, String clazzName, boolean autoScan, URI url)过滤指定的classvoidClassFilter. filter(AnyValue property, String clazzName, URI url)自动扫描地过滤指定的classprotected MessageAgentNodeServer. getMessageAgent(AnyValue serviceConf)default voidApplicationListener. init(AnyValue config)初始化方法voidNodeServer. init(AnyValue config)voidNodeSncpServer. init(AnyValue config)protected voidNodeHttpServer. loadRestServlet(ClassFilter<? extends WebSocket> webSocketFilter, AnyValue restConf, List<Object> restedObjects, ReentrantLock restedLock, StringBuilder sb, CopyOnWriteArrayList<AbstractMap.SimpleEntry<String,String[]>> rests, CopyOnWriteArrayList<AbstractMap.SimpleEntry<String,String[]>> webss)protected voidNodeSncpServer. loadSncpFilter(AnyValue servletsConf, ClassFilter<? extends Filter> classFilter)AnyValue.MergeEnumModuleEngine. mergeAppConfigStrategy(String path, String key, AnyValue val1, AnyValue val2)判断模块的配置项合并策略, 返回null表示模块不识别此配置项参数类型为AnyValue的org.redkale.boot中的构造器 构造器 说明 ClassFilter(RedkaleClassLoader classLoader, Class<? extends Annotation> annotationClass, Class superClass, Class[] excludeSuperClasses, AnyValue conf)FilterEntry(Class<T> type, boolean autoload, boolean expect, AnyValue property)FilterEntry(Class<T> type, AnyValue property)NodeHttpServer(Application application, AnyValue serconf)NodeWatchServer(Application application, AnyValue serconf) -
org.redkale.cached.spi中AnyValue的使用
声明为AnyValue的org.redkale.cached.spi中的字段 修饰符和类型 字段 说明 protected AnyValueCachedManagerService. configAnyValueCachedModuleEngine.ManagerEntity. config参数类型为AnyValue的org.redkale.cached.spi中的方法 修饰符和类型 方法 说明 protected CachedManagerCachedModuleEngine. createManager(AnyValue conf)voidCachedLocalSource. destroy(AnyValue conf)voidCachedManagerService. destroy(AnyValue conf)voidCachedLocalSource. init(AnyValue conf)voidCachedManagerService. init(AnyValue conf)AnyValue.MergeEnumCachedModuleEngine. mergeAppConfigStrategy(String path, String key, AnyValue val1, AnyValue val2)判断模块的配置项合并策略, 返回null表示模块不识别此配置项参数类型为AnyValue的org.redkale.cached.spi中的构造器 构造器 说明 ManagerEntity(CachedManager manager, AnyValue config) -
org.redkale.cluster.spi中AnyValue的使用
声明为AnyValue的org.redkale.cluster.spi中的字段 修饰符和类型 字段 说明 protected AnyValueClusterAgent. config返回AnyValue的org.redkale.cluster.spi中的方法 修饰符和类型 方法 说明 AnyValueClusterAgent. getConfig()参数类型为AnyValue的org.redkale.cluster.spi中的方法 修饰符和类型 方法 说明 booleanCacheClusterAgent. acceptsConf(AnyValue config)abstract booleanClusterAgent. acceptsConf(AnyValue config)ServiceLoader时判断配置是否符合当前实现类voidCacheClusterAgent. destroy(AnyValue config)voidClusterAgent. destroy(AnyValue config)voidCacheClusterAgent. init(AnyValue config)voidClusterAgent. init(AnyValue config)AnyValue.MergeEnumClusterModuleEngine. mergeAppConfigStrategy(String path, String key, AnyValue val1, AnyValue val2)判断模块的配置项合并策略, 返回null表示模块不识别此配置项voidCacheClusterAgent. setConfig(AnyValue config)voidClusterAgent. setConfig(AnyValue config) -
org.redkale.convert中AnyValue的使用
返回AnyValue的org.redkale.convert中的方法 修饰符和类型 方法 说明 AnyValueAnyValueDecoder. convertFrom(R in)参数类型为AnyValue的org.redkale.convert中的方法 修饰符和类型 方法 说明 voidAnyValueEncoder. convertTo(W out, AnyValue value) -
org.redkale.locked.spi中AnyValue的使用
声明为AnyValue的org.redkale.locked.spi中的字段 修饰符和类型 字段 说明 protected AnyValueLockedManagerService. config参数类型为AnyValue的org.redkale.locked.spi中的方法 修饰符和类型 方法 说明 AnyValue.MergeEnumLockedModuleEngine. mergeAppConfigStrategy(String path, String key, AnyValue val1, AnyValue val2)判断模块的配置项合并策略, 返回null表示模块不识别此配置项 -
org.redkale.mq中AnyValue的使用
参数类型为AnyValue的org.redkale.mq中的方法 修饰符和类型 方法 说明 default voidMessageConsumer. destroy(AnyValue config)default voidMessageConsumer. init(AnyValue config) -
org.redkale.mq.spi中AnyValue的使用
声明为AnyValue的org.redkale.mq.spi中的字段 修饰符和类型 字段 说明 protected AnyValueMessageAgent. config返回AnyValue的org.redkale.mq.spi中的方法 修饰符和类型 方法 说明 AnyValueMessageAgent. getConfig()参数类型为AnyValue的org.redkale.mq.spi中的方法 修饰符和类型 方法 说明 abstract booleanMessageAgent. acceptsConf(AnyValue config)voidMessageAgent. destroy(AnyValue config)voidMessageAgent.MessageConsumerWrapper. destroy(AnyValue config)voidMessageAgent. init(AnyValue config)voidMessageAgent.MessageConsumerWrapper. init(AnyValue config)AnyValue.MergeEnumMessageModuleEngine. mergeAppConfigStrategy(String path, String key, AnyValue val1, AnyValue val2)判断模块的配置项合并策略, 返回null表示模块不识别此配置项voidMessageAgent. setConfig(AnyValue config) -
org.redkale.net中AnyValue的使用
声明为AnyValue的org.redkale.net中的字段 修饰符和类型 字段 说明 protected AnyValueServer. config返回AnyValue的org.redkale.net中的方法 修饰符和类型 方法 说明 protected AnyValueDispatcherServlet. getFilterConf(Filter filter)protected AnyValueDispatcherServlet. getServletConf(Servlet servlet)参数类型为AnyValue的org.redkale.net中的方法 修饰符和类型 方法 说明 voidDispatcherServlet. addFilter(Filter<C,R,P> filter, AnyValue conf)abstract voidDispatcherServlet. addServlet(S servlet, Object attachment, AnyValue conf, K... mappings)voidServer. addServlet(S servlet, Object attachment, AnyValue conf, K... mappings)SSLContextSSLBuilder. createSSLContext(Server server, AnyValue sslConf)voidDispatcherServlet. destroy(C context, AnyValue config)voidFilter. destroy(C context, AnyValue config)voidServer. destroy(AnyValue config)voidServlet. destroy(C context, AnyValue config)static intServer. getConfBufferCapacity(AnyValue config, String netprotocol)static intServer. getConfBufferPoolSize(AnyValue config)static StringServer. getConfNetprotocol(AnyValue config)voidDispatcherServlet. init(C context, AnyValue config)voidFilter. init(C context, AnyValue config)voidServer. init(AnyValue config)voidServlet. init(C context, AnyValue config)voidTransportFactory. init(AnyValue conf, ByteBuffer pingBuffer, int pongLength)已过时。abstract voidProtocolServer. open(AnyValue config)protected voidDispatcherServlet. setFilterConf(Filter filter, AnyValue conf)protected voidDispatcherServlet. setServletConf(Servlet servlet, AnyValue conf) -
org.redkale.net.http中AnyValue的使用
声明为AnyValue的org.redkale.net.http中的字段 修饰符和类型 字段 说明 AnyValueHttpResponse.HttpResponseConfig. renderConfigAnyValueHttpContext.HttpContextConfig. rpcAuthenticatorConfigprotected AnyValueHttpContext. rpcAuthenticatorConfig参数类型为AnyValue的org.redkale.net.http中的方法 修饰符和类型 方法 说明 voidHttpDispatcherServlet. addFilter(Filter<HttpContext,HttpRequest,HttpResponse> filter, AnyValue conf)HttpServerHttpServer. addHttpFilter(HttpFilter filter, AnyValue conf)添加HttpFilterHttpServerHttpServer. addHttpServlet(HttpServlet servlet, String prefix, AnyValue conf, String... mappings)添加HttpServlet<S extends WebSocket,T extends WebSocketServlet>
THttpServer. addRestWebSocketServlet(ClassLoader classLoader, Class<S> webSocketType, MessageAgent messageAgent, String prefix, AnyValue conf)添加WebSocketServletvoidHttpDispatcherServlet. addServlet(HttpServlet servlet, Object prefix, AnyValue conf, String... mappingPaths)添加HttpServletvoidHttpDispatcherServlet. destroy(HttpContext context, AnyValue config)default voidHttpRender. destroy(HttpContext context, AnyValue config)voidHttpResourceServlet. destroy(HttpContext context, AnyValue config)default voidHttpRpcAuthenticator. destroy(AnyValue config)销毁方法voidHttpServer. destroy(AnyValue config)voidWebSocketNode. destroy(AnyValue conf)voidWebSocketNodeService. destroy(AnyValue conf)voidHttpDispatcherServlet. init(HttpContext context, AnyValue config)default voidHttpRender. init(HttpContext context, AnyValue config)voidHttpResourceServlet. init(HttpContext context, AnyValue config)HttpResponse.HttpResponseConfigHttpResponse.HttpResponseConfig. init(AnyValue config)default voidHttpRpcAuthenticator. init(AnyValue config)初始化方法voidHttpRpcSecretAuthenticator. init(AnyValue config)voidHttpServer. init(AnyValue config)voidWebSocketNode. init(AnyValue conf)voidWebSocketNodeService. init(AnyValue conf)protected voidWebSocketNode. postDestroy(AnyValue conf)voidHttpDispatcherServlet. postStart(HttpContext context, AnyValue config)protected voidHttpFilter. postStart(HttpContext context, AnyValue config)voidHttpServlet. postStart(HttpContext context, AnyValue config) -
org.redkale.net.sncp中AnyValue的使用
返回AnyValue的org.redkale.net.sncp中的方法 修饰符和类型 方法 说明 static AnyValueSncp. getResourceConf(Service service)参数类型为AnyValue的org.redkale.net.sncp中的方法 修饰符和类型 方法 说明 voidSncpDispatcherServlet. addServlet(SncpServlet servlet, Object attachment, AnyValue conf, Uint128... mappings)SncpServerSncpServer. addSncpFilter(SncpFilter filter, AnyValue conf)添加SncpFilterstatic <T extends Service>
TSncp. createLocalService(RedkaleClassLoader classLoader, String name, Class<T> serviceImplClass, org.redkale.asm.AsmMethodBoost methodBoost, ResourceFactory resourceFactory, SncpRpcGroups sncpRpcGroups, SncpClient client, MessageAgent agent, String remoteGroup, AnyValue conf)创建本地模式Service实例static <T extends Service>
TSncp. createRemoteService(ClassLoader classLoader, String name, Class<T> serviceTypeOrImplClass, org.redkale.asm.AsmMethodBoost methodBoost, ResourceFactory resourceFactory, SncpRpcGroups sncpRpcGroups, SncpClient client, MessageAgent agent, String remoteGroup, AnyValue conf)voidSncpDispatcherServlet. destroy(SncpContext context, AnyValue config)voidSncpDispatcherServlet. init(SncpContext context, AnyValue config)voidSncpServer. init(AnyValue config)参数类型为AnyValue的org.redkale.net.sncp中的构造器 构造器 说明 SncpServer(Application application, long serverStartTime, AnyValue serconf, ResourceFactory resourceFactory) -
org.redkale.props.spi中AnyValue的使用
参数类型为AnyValue的org.redkale.props.spi中的方法 修饰符和类型 方法 说明 abstract booleanPropertiesAgent. acceptsConf(AnyValue config)ServiceLoader时判断配置是否符合当前实现类voidPropertiesAgent. compile(AnyValue conf)编译时进行的操作abstract voidPropertiesAgent. destroy(AnyValue conf)销毁动作abstract Map<String,Properties>PropertiesAgent. init(Application application, AnyValue conf)初始化配置源,配置项需要写入envProperties,并监听配置项的变化 -
org.redkale.scheduled.spi中AnyValue的使用
声明为AnyValue的org.redkale.scheduled.spi中的字段 修饰符和类型 字段 说明 protected AnyValueScheduledModuleEngine. configprotected AnyValueScheduleManagerService. config参数类型为AnyValue的org.redkale.scheduled.spi中的方法 修饰符和类型 方法 说明 voidScheduleManagerService. destroy(AnyValue conf)voidScheduleManagerService. init(AnyValue conf)AnyValue.MergeEnumScheduledModuleEngine. mergeAppConfigStrategy(String path, String key, AnyValue val1, AnyValue val2)判断模块的配置项合并策略, 返回null表示模块不识别此配置项 -
org.redkale.service中AnyValue的使用
参数类型为AnyValue的org.redkale.service中的方法 修饰符和类型 方法 说明 default voidService. destroy(AnyValue config)进程退出时,调用Service销毁 远程模式下该方法会重载成空方法 注意: 在此方法内不能调用MessageClient.sendMessage 方法,因为Application关闭时会先destroy掉MessageClientdefault voidService. init(AnyValue config)该方法必须是可以重复调用, 当reload时需要重复调用init方法 远程模式下该方法会重载成空方法voidWebSocketNodeService. init(AnyValue conf)已过时。 -
org.redkale.source中AnyValue的使用
声明为AnyValue的org.redkale.source中的字段 修饰符和类型 字段 说明 protected AnyValueAbstractDataSqlSource. config参数类型为AnyValue的org.redkale.source中的方法 修饰符和类型 方法 说明 static booleanCacheMemorySource. acceptsConf(AnyValue config)static booleanDataJdbcSource. acceptsConf(AnyValue conf)static booleanDataMemorySource. acceptsConf(AnyValue config)static CacheSourceAbstractCacheSource. createCacheSource(ClassLoader serverClassLoader, ResourceFactory resourceFactory, AnyValue sourceConf, String sourceName, boolean compileMode)static DataSourceDataSources. createDataSource(ClassLoader serverClassLoader, ResourceFactory resourceFactory, AnyValue sourceConf, String sourceName, boolean compileMode)static DataSourceDataSources. createDataSource(String unitName, AnyValue conf)已过时。static DataSourceDataSources. createDataSource(AnyValue sourceConf, String sourceName)voidAbstractDataSqlSource. destroy(AnyValue config)voidCacheMemorySource. destroy(AnyValue conf)voidDataJdbcSource. destroy(AnyValue config)voidAbstractDataSource. init(AnyValue conf)voidAbstractDataSqlSource. init(AnyValue conf)voidCacheMemorySource. init(AnyValue conf)voidDataJdbcSource. init(AnyValue conf) -
org.redkale.source.spi中AnyValue的使用
参数类型为AnyValue的org.redkale.source.spi中的方法 修饰符和类型 方法 说明 AnyValue.MergeEnumSourceModuleEngine. mergeAppConfigStrategy(String path, String key, AnyValue val1, AnyValue val2)判断模块的配置项合并策略, 返回null表示模块不识别此配置项 -
org.redkale.util中AnyValue的使用
org.redkale.util中AnyValue的子类 修饰符和类型 类 说明 static classAnyValue.DefaultAnyValue已过时。replaceAnyValueWriterclassAnyValueWriterAnyValue的可写版返回AnyValue的org.redkale.util中的方法 修饰符和类型 方法 说明 abstract AnyValueAnyValue. copy()复制一份abstract AnyValueAnyValue. getAnyValue(String name)根据字段名获取AnyValue类型的字段值abstract AnyValueAnyValue. getAnyValue(String name, boolean create)根据字段名获取AnyValue类型的字段值AnyValueAnyValueWriter. getAnyValue(String name)AnyValueAnyValueWriter. getAnyValue(String name, boolean create)AnyValueEnvironment. getAnyValue(String name, boolean autoCreated)abstract AnyValue[]AnyValue. getAnyValues(String name)获取同级下同一字段名下所有的AnyValue对象abstract AnyValue[]AnyValue. getAnyValues(String... names)根据字段名集合获取AnyValue类型的字段值集合AnyValue[]AnyValueWriter. getAnyValues(String name)AnyValue[]AnyValueWriter. getAnyValues(String... names)static AnyValueAnyValue. loadFromProperties(InputStream in)Properties内容转换成AnyValue对象, 层级采用key的.分隔
key中包含[xx]且xx不是数字且不是位于最后的视为name,会在对应的节点对象中加入name属性static AnyValueAnyValue. loadFromProperties(InputStream in, Charset charset)Properties内容转换成AnyValue对象, 层级采用key的.分隔
key中包含[xx]且xx不是数字且不是位于最后的视为name,会在对应的节点对象中加入name属性static AnyValueAnyValue. loadFromProperties(String text)Properties内容转换成AnyValue对象, 层级采用key的.分隔
key中包含[xx]且xx不是数字且不是位于最后的视为name,会在对应的节点对象中加入name属性static AnyValueAnyValue. loadFromProperties(String text, String nameName)Properties内容转换成AnyValue对象, 层级采用key的.分隔
key中包含[xx]且xx不是数字且不是位于最后的视为name,会在对应的节点对象中加入name属性static AnyValueAnyValue. loadFromProperties(Properties properties)Properties内容转换成AnyValue对象, 层级采用key的.分隔
key中包含[xx]且xx不是数字且不是位于最后的视为name,会在对应的节点对象中加入name属性static AnyValueAnyValue. loadFromProperties(Properties properties, String nameName)Properties内容转换成AnyValue对象, 层级采用key的.分隔
key中包含[xx]且xx不是数字且不是位于最后的视为name,会在对应的节点对象中加入nameName属性static AnyValueAnyValue. loadFromXml(InputStream in)xml内容流转换成AnyValue对象static AnyValueAnyValue. loadFromXml(InputStream in, Charset charset)xml内容流转换成AnyValue对象static AnyValueAnyValue. loadFromXml(InputStream in, Charset charset, BinaryOperator<String> attrFunc)xml内容流转换成AnyValue对象static AnyValueAnyValue. loadFromXml(InputStream in, BinaryOperator<String> attrFunc)xml内容流转换成AnyValue对象static AnyValueAnyValue. loadFromXml(String text)xml文本内容转换成AnyValue对象static AnyValueAnyValue. loadFromXml(String text, BinaryOperator<String> attrFunc)xml内容流转换成AnyValue对象static AnyValueAnyValue. loadFromYaml(String text)yaml内容流转换成AnyValue对象abstract AnyValueAnyValue. merge(AnyValue node, AnyValue.MergeStrategy func)将另一个对象合并过来AnyValueXmlReader. read()AnyValueYamlProvider.YamlLoader. read(String content)将yml内容转换成AnyValueAnyValueYamlReader.DefaultYamlLoader. read(String content)AnyValueYamlReader. read()abstract AnyValueAnyValue. replace(AnyValue node)将另一个对象替换本对象返回变量类型为AnyValue的类型的org.redkale.util中的方法 修饰符和类型 方法 说明 abstract AnyValue.Entry<AnyValue>[]AnyValue. getAnyEntrys()获取所有复合子节点AnyValue.Entry<AnyValue>[]AnyValueWriter. getAnyEntrys()protected AnyValue.Entry<AnyValue>[]AnyValueWriter. getAnyValueEntrys(String name)参数类型为AnyValue的org.redkale.util中的方法 修饰符和类型 方法 说明 booleanInstanceProvider. acceptsConf(AnyValue config)AnyValueWriterAnyValueWriter. addAll(AnyValue av)合并两个AnyValue对象 不去重AnyValueWriterAnyValueWriter. addAllStringSet(AnyValue av)合并两个AnyValue对象, 会去重, 没有的才增加AnyValueWriterAnyValueWriter. addValue(String name, AnyValue value)AnyValue.MergeEnumAnyValue.MergeStrategy. apply(String path, String name, AnyValue val1, AnyValue val2)static AnyValueWriterAnyValueWriter. create(String name, AnyValue value)创建含name-value值的AnyValueWriter对象abstract AnyValueAnyValue. merge(AnyValue node, AnyValue.MergeStrategy func)将另一个对象合并过来protected AnyValueWriterAnyValueWriter. merge(AnyValue node0, String path, AnyValue.MergeStrategy func)AnyValueWriterAnyValueWriter. merge(AnyValue node, AnyValue.MergeStrategy func)将另一个对象合并过来AnyValueWriterAnyValueWriter. removeValue(String name, AnyValue value)abstract AnyValueAnyValue. replace(AnyValue node)将另一个对象替换本对象AnyValueWriterAnyValueWriter. replace(AnyValue node)将另一个对象替换本对象AnyValueWriterAnyValueWriter. setAll(AnyValue av)合并两个AnyValue对象 会去重AnyValueWriterAnyValueWriter. setValue(String name, AnyValue value)protected static voidAnyValue. toJsonObject(JsonObject json, AnyValue conf)protected static voidAnyValue. toProperties(Properties props, String parent, AnyValue conf)protected static StringBuilderAnyValue. toXmlString(StringBuilder sb, String nodeName, AnyValue conf, int indent)xml化AnyValue对象类型变量类型为AnyValue的org.redkale.util中的方法参数 修饰符和类型 方法 说明 StringAnyValue. toString(int indent, BiFunction<AnyValue,String,CharSequence> prefixFunc)当前AnyValue对象字符串化
-