跳过导航链接
A B C D E F G H I J K L M N O P Q R S T U V W _ 

A

add(String, Supplier<Object>) - 类 中的方法cn.xnatural.app.util.Copier
手动添加额外属性源 NOTE: 会优先于 源对象中的属性
add(String, BiFunction<S, T, Object>) - 类 中的方法cn.xnatural.app.util.Copier
手动添加额外属性源 NOTE: 会优先于 源对象中的属性
add(VProcessor) - 类 中的方法cn.xnatural.app.v.VChain
添加V处理器
addConverter(String, Function) - 类 中的方法cn.xnatural.app.util.Copier
添加属性值转换器
addSource(Object, String) - 类 中的方法cn.xnatural.app.AppContext
添加对象源 AppContext.ep() 会找出source对象中所有其暴露的功能.
addSource(Object...) - 类 中的方法cn.xnatural.app.AppContext
添加对象源 AppContext.ep() 会找出source对象中所有其暴露的功能.
app() - 类 中的方法cn.xnatural.app.ServerTpl
当前应用上下文
AppContext - cn.xnatural.app中的类
应用执行上下文 1.
AppContext() - 类 的构造器cn.xnatural.app.AppContext
 
apply() - 接口 中的方法cn.xnatural.app.Recursion
用于递归栈帧之间的连接,惰性求值
async(Runnable, Consumer<Throwable>) - 类 中的方法cn.xnatural.app.ServerTpl
异步执行.
async(Runnable) - 类 中的方法cn.xnatural.app.ServerTpl
异步执行.
attrs(String) - 类 中的方法cn.xnatural.app.AppContext
属性集:一组属性
attrs() - 类 中的方法cn.xnatural.app.ServerTpl
当前服务的属性集

B

baseDir(String) - 类 中的静态方法cn.xnatural.app.Utils
项目根目录下边找目录或文件
basicAuth(String, String) - 类 中的方法cn.xnatural.app.util.Httper
 
bean(Class<T>) - 类 中的方法cn.xnatural.app.AppContext
全局查找 bean 对象
bean(Class<T>, String) - 类 中的方法cn.xnatural.app.AppContext
全局查找 bean 对象
bean(Class<T>, String) - 类 中的方法cn.xnatural.app.ServerTpl
全局查找 bean
bean(Class<T>) - 类 中的方法cn.xnatural.app.ServerTpl
全局查找 bean
beanCtx - 类 中的变量cn.xnatural.app.ServerTpl
bean 容器.
beans(Class<T>) - 类 中的方法cn.xnatural.app.AppContext
全局查找 bean 对象
beans() - 类 中的方法cn.xnatural.app.AppContext
遍历所有bean
beans(Class<T>) - 类 中的方法cn.xnatural.app.ServerTpl
全局查找 bean
body(String) - 类 中的方法cn.xnatural.app.util.Httper
 
body(String, String) - 类 中的方法cn.xnatural.app.util.Httper
 
bodyStr - 类 中的变量cn.xnatural.app.util.Httper
 
build() - 类 中的方法cn.xnatural.app.util.Copier
对象属性之前的copy
buildUrl(String, Map<String, Object>) - 类 中的静态方法cn.xnatural.app.util.Httper
把查询参数添加到 url 后边

C

CacheSrv - cn.xnatural.app中的类
简单内存缓存服务
CacheSrv(String) - 类 的构造器cn.xnatural.app.CacheSrv
 
CacheSrv() - 类 的构造器cn.xnatural.app.CacheSrv
 
CacheSrv.Record - cn.xnatural.app中的类
缓存记录
call(Recursion<T>) - 接口 中的静态方法cn.xnatural.app.Recursion
统一结构的方法,获得当前递归的下一个递归
call(String, Object...) - 类 中的方法cn.xnatural.app.util.DB
执行一个存储过程
charset - 类 中的变量cn.xnatural.app.util.Httper
 
charset(String) - 类 中的方法cn.xnatural.app.util.Httper
 
checkValidTimeout - 类 中的静态变量cn.xnatural.app.util.Httper
 
chunkedLen - 类 中的变量cn.xnatural.app.util.Httper
记录chunked的读取状态
clean() - 类 中的方法cn.xnatural.app.CacheSrv
清理过期和多余的数据 一次最多清一条 1.
clear() - 类 中的方法cn.xnatural.app.Lazier
清除
close(String) - 类 中的方法cn.xnatural.app.CacheSrv.Record
如果缓存值是 AutoCloseable,则在失效时 执行 close
close() - 类 中的方法cn.xnatural.app.util.DB
 
close() - 类 中的静态方法cn.xnatural.app.util.Httper
 
close() - 类 中的方法cn.xnatural.app.util.Httper.SocketHolder
 
cn.xnatural.app - 程序包 cn.xnatural.app
 
cn.xnatural.app.util - 程序包 cn.xnatural.app.util
 
cn.xnatural.app.v - 程序包 cn.xnatural.app.v
 
connectTimeout - 类 中的变量cn.xnatural.app.util.Httper
 
connectTimeout(int) - 类 中的方法cn.xnatural.app.util.Httper
 
contentType - 类 中的变量cn.xnatural.app.util.Httper
 
contentType(String) - 类 中的方法cn.xnatural.app.util.Httper
设置 content-type
contentType - 类 中的变量cn.xnatural.app.util.Httper.Param
 
cookie(String, Object) - 类 中的方法cn.xnatural.app.util.Httper
 
cookies - 类 中的变量cn.xnatural.app.util.Httper
 
cookies() - 类 中的方法cn.xnatural.app.util.Httper
 
Copier<S,T> - cn.xnatural.app.util中的类
对象拷贝工具 支持: 对象 转 map 对象 转 javabean
Copier(S, T) - 类 的构造器cn.xnatural.app.util.Copier
 
copier(S, T) - 类 中的静态方法cn.xnatural.app.Utils
对象 复制器
count() - 类 中的方法cn.xnatural.app.CacheSrv
当前缓存的个数统计
count - 类 中的变量cn.xnatural.app.Counter
 
count - 类 中的静态变量cn.xnatural.app.util.DB
 
countByPattern - 类 中的变量cn.xnatural.app.Counter
 
Counter - cn.xnatural.app中的类
统计每时间段的处理个数
Counter(String, BiConsumer<String, LongAdder>) - 类 的构造器cn.xnatural.app.Counter
 
Counter() - 类 的构造器cn.xnatural.app.Counter
 
createDataSource(Map<String, Object>) - 类 中的静态方法cn.xnatural.app.util.DB
创建一个 数据源
CS - 类 中的静态变量cn.xnatural.app.Utils
 
customEnv(Map<String, Object>) - 类 中的方法cn.xnatural.app.AppContext
额外自定义环境配置

D

dataSource - 类 中的变量cn.xnatural.app.util.DB
数据源
DB - cn.xnatural.app.util中的类
数据库 sql 操作工具
DB(DataSource) - 类 的构造器cn.xnatural.app.util.DB
创建一个 DB
DB(Map<String, Object>) - 类 的构造器cn.xnatural.app.util.DB
创建一个 DB
DB(String) - 类 的构造器cn.xnatural.app.util.DB
创建一个DB
DB(String, String, String) - 类 的构造器cn.xnatural.app.util.DB
创建一个DB
DB(String, Integer, Integer) - 类 的构造器cn.xnatural.app.util.DB
创建一个DB
DB(String, String, String, Integer, Integer) - 类 的构造器cn.xnatural.app.util.DB
创建一个DB
debug - 类 中的变量cn.xnatural.app.util.Httper
 
debug() - 类 中的方法cn.xnatural.app.util.Httper
 
debug(boolean) - 类 中的方法cn.xnatural.app.util.Httper
 
decodeContent(List<ByteBuffer>, OutputStream, Long) - 类 中的方法cn.xnatural.app.util.Httper
内容解析
delete() - 类 中的方法cn.xnatural.app.util.Httper
 
Devourer - cn.xnatural.app中的类
对列执行器 按顺序执行添加的Runnable 当需要按顺序控制任务 一个一个, 两个两个...
Devourer(String, Executor) - 类 的构造器cn.xnatural.app.Devourer
创建对列
Devourer(String) - 类 的构造器cn.xnatural.app.Devourer
创建对列
Devourer() - 类 的构造器cn.xnatural.app.Devourer
 
digestAuth(String, String) - 类 中的方法cn.xnatural.app.util.Httper
 
done() - 类 中的方法cn.xnatural.app.Lazier
是否已执行
done(T) - 接口 中的静态方法cn.xnatural.app.Recursion
结束当前递归,重写对应的默认方法的值,完成状态改为true,设置最终返回结果,设置非法递归调用
dsAttr - 类 中的变量cn.xnatural.app.util.DB
dataSource 属性集
dsAttr(String, Object) - 类 中的方法cn.xnatural.app.util.DB
设置 DataSource 属性
duration - 类 中的变量cn.xnatural.app.Pause
暂停时长

E

end - 类 中的静态变量cn.xnatural.app.util.Httper
 
env() - 类 中的方法cn.xnatural.app.AppContext
环境属性配置
ep() - 类 中的方法cn.xnatural.app.AppContext
事件中心
ep - 类 中的变量cn.xnatural.app.ServerTpl
1.
errorHandle(BiConsumer<Throwable, Devourer>) - 类 中的方法cn.xnatural.app.Devourer
错误处理
errorHandler - 类 中的变量cn.xnatural.app.Devourer
错误处理函数
exec() - 类 中的方法cn.xnatural.app.AppContext
系统线程池
exec - 类 中的变量cn.xnatural.app.Devourer
线程池
exec() - 类 中的方法cn.xnatural.app.ServerTpl
线程池
exec - 类 中的变量cn.xnatural.app.util.Tailer
 
exec(Executor) - 类 中的方法cn.xnatural.app.util.Tailer
设置处理线程池
execute(String, Object...) - 类 中的方法cn.xnatural.app.util.DB
插入一条数据/更新数据
execute() - 类 中的方法cn.xnatural.app.util.Httper
执行 http 请求
exHandler - 类 中的变量cn.xnatural.app.util.Httper
 
exHandler(BiConsumer<Throwable, Httper>) - 类 中的方法cn.xnatural.app.util.Httper
 
expireFn - 类 中的变量cn.xnatural.app.CacheSrv.Record
 
exposeBean(Object, String...) - 类 中的方法cn.xnatural.app.ServerTpl
暴露 bean 给其它模块用.

F

failMaxKeep - 类 中的变量cn.xnatural.app.Devourer
对列中失败的最大保留个数, 如果 大于0 执行失败, 暂时保留, 直至 排对的个数大于此值 否则 失败丢弃 默认: 执行失败,丢弃
failMaxKeep(Integer) - 类 中的方法cn.xnatural.app.Devourer
执行失败时, 保留最大个数 NOTE: 失败的任务会不断的重试执行, 直到成功或者对列中的个数大于此值被删除 典型应用: 数据上报场景
fileHandle(Function<String, OutputStream>) - 类 中的方法cn.xnatural.app.util.Httper
文件处理: (文件名) -> { 返回 文件写入流}
fileStream(String, InputStream, int, String) - 类 中的方法cn.xnatural.app.util.Httper
添加文件流参数
FileStream(InputStream, int, String) - 类 的构造器cn.xnatural.app.util.Httper.FileStream
 
fillParam(PreparedStatement, Object...) - 类 中的方法cn.xnatural.app.util.DB
 
fn - 类 中的变量cn.xnatural.app.Counter
 
formBody(String) - 类 中的方法cn.xnatural.app.util.Httper
 

G

get(String) - 类 中的方法cn.xnatural.app.CacheSrv
获取缓存值
get() - 类 中的方法cn.xnatural.app.Lazier
 
get(String) - 类 中的方法cn.xnatural.app.util.Copier
属性取值函数
get() - 类 中的方法cn.xnatural.app.util.Httper
 
getAndUpdate(String) - 类 中的方法cn.xnatural.app.CacheSrv
获取缓存值, 并更新缓存时间(即从现在开始重新计算过期时间)
getAttr(String, Class<T>, T) - 类 中的方法cn.xnatural.app.AppContext
获取属性
getAttr(String) - 类 中的方法cn.xnatural.app.ServerTpl
 
getAttr(String, Class<T>, T) - 类 中的方法cn.xnatural.app.ServerTpl
获取属性
getBoolean(String, Boolean) - 类 中的方法cn.xnatural.app.ServerTpl
 
getDouble(String, Double) - 类 中的方法cn.xnatural.app.ServerTpl
 
getFloat(String, Float) - 类 中的方法cn.xnatural.app.ServerTpl
 
getGetterName(Method) - 类 中的方法cn.xnatural.app.util.Copier
获取 getter 方法 属性名
getInteger(String, Integer) - 类 中的方法cn.xnatural.app.ServerTpl
 
getJdbcUrl() - 类 中的方法cn.xnatural.app.util.DB
获取 jdbc 连接地址
getLatchSize() - 类 中的方法cn.xnatural.app.LatchLock
当前已获取锁个数
getLimit() - 类 中的方法cn.xnatural.app.Devourer
获取任务数限制
getLimit() - 类 中的方法cn.xnatural.app.LatchLock
 
getLong(String, Long) - 类 中的方法cn.xnatural.app.ServerTpl
 
getName() - 类 中的方法cn.xnatural.app.ServerTpl
服务名
getOrCreate(URI) - 类 中的方法cn.xnatural.app.util.Httper
获取或创建连接
getParallel() - 类 中的方法cn.xnatural.app.Devourer
正在执行的任务数
getProfile() - 类 中的方法cn.xnatural.app.AppContext
get profile
getPropFieldName(Field) - 类 中的方法cn.xnatural.app.util.Copier
如果是个属性字段就返回 字段名 作属性名
getResponseCode() - 类 中的方法cn.xnatural.app.util.Httper
 
getResult() - 接口 中的方法cn.xnatural.app.Recursion
获得递归结果,只有在递归结束才能调用,这里默认给出异常,通过工具类的重写来获得值
getSetterName(Method) - 类 中的方法cn.xnatural.app.util.Copier
获取 setter 方法 属性名
getStr(String, String) - 类 中的方法cn.xnatural.app.ServerTpl
 
getUpdateTime() - 类 中的方法cn.xnatural.app.CacheSrv.Record
 
getWaitingCount() - 类 中的方法cn.xnatural.app.Devourer
排对个数
grafting - 类 中的变量cn.xnatural.app.util.Httper
 

H

handle(Function<String, Boolean>) - 类 中的方法cn.xnatural.app.util.Tailer
处理输出行
header(String, String) - 类 中的方法cn.xnatural.app.util.Httper
 
hget(String, String) - 类 中的方法cn.xnatural.app.CacheSrv
获取缓存值
hgetAndUpdate(String, String) - 类 中的方法cn.xnatural.app.CacheSrv
获取缓存值, 并更新缓存时间(即从现在开始重新计算过期时间)
hremove(String, String) - 类 中的方法cn.xnatural.app.CacheSrv
移除缓存
hset(String, String, Object) - 类 中的方法cn.xnatural.app.CacheSrv
设置缓存 取默认过期时间 30 分钟
hset(String, String, Object, Duration) - 类 中的方法cn.xnatural.app.CacheSrv
设置缓存
hset(String, String, Object, Function<CacheSrv.Record, Long>) - 类 中的方法cn.xnatural.app.CacheSrv
设置缓存
http(String) - 类 中的静态方法cn.xnatural.app.Utils
构建一个 http 请求, 支持 get, post.
Httper - cn.xnatural.app.util中的类
http 请求客户端
Httper(String) - 类 的构造器cn.xnatural.app.util.Httper
 
Httper.FileStream - cn.xnatural.app.util中的类
 
Httper.Param - cn.xnatural.app.util中的类
参数
Httper.SocketHolder - cn.xnatural.app.util中的类
socket 连接持有

I

id() - 类 中的方法cn.xnatural.app.AppContext
 
id(String) - 类 中的方法cn.xnatural.app.util.Httper
 
ignore - 类 中的变量cn.xnatural.app.util.Copier
忽略属性
ignore(String...) - 类 中的方法cn.xnatural.app.util.Copier
忽略属性
ignoreNull - 类 中的变量cn.xnatural.app.util.Copier
忽略空属性 默认不忽略空值属性
ignoreNull(boolean) - 类 中的方法cn.xnatural.app.util.Copier
忽略空值属性
increment() - 类 中的方法cn.xnatural.app.Counter
 
indexOf(ByteBuffer, byte[]) - 类 中的方法cn.xnatural.app.util.Httper
查找分割符所匹配下标
init() - 类 中的方法cn.xnatural.app.util.DB
 
inject(Object) - 类 中的方法cn.xnatural.app.AppContext
为bean对象中的Inject注解字段注入对应的bean对象
Inject - cn.xnatural.app中的注释类型
对象注入 匹配规则: 1.
insertWithGeneratedKey(String, Object...) - 类 中的方法cn.xnatural.app.util.DB
插入一条数据 并 返回第一个 数据库自生成字段
invoke() - 接口 中的方法cn.xnatural.app.Recursion
及早求值,执行者一系列的递归,因为栈帧只有一个,所以使用findFirst获得最终的栈帧,接着调用getResult方法获得最终递归值
ioCopy(InputStream, OutputStream, Integer) - 类 中的静态方法cn.xnatural.app.Utils
io 流 copy try (InputStream is = new FileInputStream("d:/tmp/1.txt"); OutputStream os = new FileOutputStream("d:/tmp/2.txt")) { Utils.ioCopy(is, os); }
ioCopy(InputStream, OutputStream) - 类 中的静态方法cn.xnatural.app.Utils
io 流 copy
ioExceptionRetryCount - 类 中的变量cn.xnatural.app.util.Httper
 
ipv4() - 类 中的静态方法cn.xnatural.app.Utils
本机ipv4地址
is - 类 中的变量cn.xnatural.app.util.Httper.FileStream
 
isFinished() - 接口 中的方法cn.xnatural.app.Recursion
判断当前递归是否结束
isLinux() - 类 中的静态方法cn.xnatural.app.Utils
判断系统是否为 linux 系统 判断方法来源 io.netty.channel.epoll.Native#loadNativeLibrary()
isSuspended() - 类 中的方法cn.xnatural.app.Devourer
是否是暂停状态
isTimeout() - 类 中的方法cn.xnatural.app.Pause
暂停时间是否已过
isUseLast() - 类 中的方法cn.xnatural.app.Devourer
是否使用了 userLast 特性
iterateField(Class<?>, Consumer<Field>) - 类 中的静态方法cn.xnatural.app.Utils
查找字段
iterateMethod(Class<?>, Consumer<Method>) - 类 中的静态方法cn.xnatural.app.Utils
遍历所有方法并处理

J

javabeanToMap() - 类 中的方法cn.xnatural.app.util.Copier
 
jsonBody(String) - 类 中的方法cn.xnatural.app.util.Httper
 

K

key - 类 中的变量cn.xnatural.app.Devourer
队列标识

L

LatchLock - cn.xnatural.app中的类
流量限制锁
LatchLock() - 类 的构造器cn.xnatural.app.LatchLock
 
latchSize - 类 中的变量cn.xnatural.app.LatchLock
当前并发大小
Lazier<T> - cn.xnatural.app中的类
Groovy @Lazy 实现
Lazier(Supplier<T>) - 类 的构造器cn.xnatural.app.Lazier
 
left(long) - 类 中的方法cn.xnatural.app.CacheSrv.Record
相对于某个时间, 还剩多长时间才失效
left() - 类 中的方法cn.xnatural.app.Pause
剩余时长(单位:ms)
length - 类 中的变量cn.xnatural.app.util.Httper.FileStream
 
limit - 类 中的变量cn.xnatural.app.LatchLock
流量限制大小
limit(int) - 类 中的方法cn.xnatural.app.LatchLock
设置限制
lineFn - 类 中的变量cn.xnatural.app.util.Tailer
 
localBean(EC, Class<T>, String) - 类 中的方法cn.xnatural.app.AppContext
AppContext.sourceMap中查找对象
localBean(EC, Class<T>, String) - 类 中的方法cn.xnatural.app.ServerTpl
 
localBean(Class<T>, String) - 类 中的方法cn.xnatural.app.ServerTpl
本地查找 对象
localBean(Class<T>) - 类 中的方法cn.xnatural.app.ServerTpl
本地查找 对象
lock - 类 中的变量cn.xnatural.app.Devourer
流量限制锁
log - 类 中的静态变量cn.xnatural.app.AppContext
 
log - 类 中的静态变量cn.xnatural.app.Devourer
 
log - 类 中的变量cn.xnatural.app.ServerTpl
 
log - 类 中的静态变量cn.xnatural.app.util.Httper
 
log - 类 中的静态变量cn.xnatural.app.util.Tailer
 
log - 类 中的静态变量cn.xnatural.app.Utils
 
log - 类 中的静态变量cn.xnatural.app.v.VChain
 

M

mapProp(String, String) - 类 中的方法cn.xnatural.app.util.Copier
属性名 映射 Copier.ignore 也能控制别名
mapProps - 类 中的变量cn.xnatural.app.util.Copier
属性别名 目标属性名 -> 源属性名
maxRows - 类 中的变量cn.xnatural.app.util.DB
最大返回条数限制
md5Hex(byte[]) - 类 中的静态方法cn.xnatural.app.Utils
md5 hex
memo(BiFunction<Function<I, R>, I, R>, I) - 接口 中的静态方法cn.xnatural.app.Recursion
备忘录模式 函数封装
method - 类 中的变量cn.xnatural.app.util.Httper
 
method(String) - 类 中的方法cn.xnatural.app.util.Httper
 

N

name() - 类 中的方法cn.xnatural.app.AppContext
 
name - 类 中的变量cn.xnatural.app.ServerTpl
服务名字标识.
name - 类 中的变量cn.xnatural.app.util.DB
名字标识
name - 类 中的变量cn.xnatural.app.util.Httper.FileStream
 
nanoId() - 类 中的静态方法cn.xnatural.app.Utils
 
nanoId(int) - 类 中的静态方法cn.xnatural.app.Utils
 
nanoId(int, char[]) - 类 中的静态方法cn.xnatural.app.Utils
nano id 生成

O

offer(Runnable) - 类 中的方法cn.xnatural.app.Devourer
任务入对列

P

parallel(int) - 类 中的方法cn.xnatural.app.Devourer
设置并发数
param(String, Object) - 类 中的方法cn.xnatural.app.util.Httper
添加参数
param(String, Object, String) - 类 中的方法cn.xnatural.app.util.Httper
添加参数
Param(Object) - 类 的构造器cn.xnatural.app.util.Httper.Param
 
Param(Object, String) - 类 的构造器cn.xnatural.app.util.Httper.Param
 
params - 类 中的变量cn.xnatural.app.util.Httper
 
Pause - cn.xnatural.app中的类
暂停器
Pause(Duration) - 类 的构造器cn.xnatural.app.Pause
 
pauseCondition - 类 中的变量cn.xnatural.app.Devourer
暂停执行条件
perSpend - 类 中的变量cn.xnatural.app.Devourer
速度限制 平均每个占用执行时间
pid() - 类 中的静态方法cn.xnatural.app.Utils
得到jvm进程号
post() - 类 中的方法cn.xnatural.app.util.Httper
 
post(Object) - 接口 中的方法cn.xnatural.app.v.VProcessor
V 链中后执行
pre(Object) - 接口 中的方法cn.xnatural.app.v.VProcessor
V 链中先执行
preReq - 类 中的变量cn.xnatural.app.util.Httper
预请求
processChunked(List<ByteBuffer>, OutputStream) - 类 中的方法cn.xnatural.app.util.Httper
接收 chunked 数据
processLine(List<ByteBuffer>, Consumer<String>) - 类 中的方法cn.xnatural.app.util.Httper
处理行数据
ps - 类 中的变量cn.xnatural.app.v.VChain
 
put() - 类 中的方法cn.xnatural.app.util.Httper
 

Q

queue(String, Runnable) - 类 中的方法cn.xnatural.app.AppContext
加入到对列行器执行函数 每个对列里面的函数同一时间只执行一个, 各对列相互执行互不影响
queue(String, Runnable) - 类 中的方法cn.xnatural.app.ServerTpl
对列执行
queue(String) - 类 中的方法cn.xnatural.app.ServerTpl
获取执行对列
queue(Runnable) - 类 中的方法cn.xnatural.app.ServerTpl
对列执行, 加入到当前ServerTpl.name为对列名的对列
queues - 类 中的变量cn.xnatural.app.AppContext
对列执行器映射

R

readLine(ByteBuffer) - 类 中的方法cn.xnatural.app.util.Httper
读一行数据
readTimeout - 类 中的变量cn.xnatural.app.util.Httper
 
readTimeout(int) - 类 中的方法cn.xnatural.app.util.Httper
 
receive(InputStream) - 类 中的方法cn.xnatural.app.util.Httper
接收响应数据并解析
Record(Function<CacheSrv.Record, Long>, Object) - 类 的构造器cn.xnatural.app.CacheSrv.Record
 
Recursion<T> - cn.xnatural.app中的接口
java无限递归优化实现 https://www.cnblogs.com/invoker-/p/7723420.html https://www.cnblogs.com/invoker-/p/7728452.html
release() - 类 中的方法cn.xnatural.app.LatchLock
释放一个锁 一般是 LatchLock.tryLock() 成功后 调一次
remove(String) - 类 中的方法cn.xnatural.app.CacheSrv
移除缓存
requestHeader - 类 中的变量cn.xnatural.app.util.Httper
 
respCode - 类 中的变量cn.xnatural.app.util.Httper
 
responseHeader - 类 中的变量cn.xnatural.app.util.Httper
 
result - 类 中的变量cn.xnatural.app.util.Httper
 
resultHandle(BiFunction<OutputStream, Map<String, String>, ?>) - 类 中的方法cn.xnatural.app.util.Httper
处理函数: (结果流, 响应头) -> { 处理 }
resultHandler - 类 中的变量cn.xnatural.app.util.Httper
 
resume() - 类 中的方法cn.xnatural.app.Devourer
手动恢复执行
row(String, Object...) - 类 中的方法cn.xnatural.app.util.DB
返回一条数据
rows(String, Object...) - 类 中的方法cn.xnatural.app.util.DB
查询多条数据
run(Object) - 类 中的方法cn.xnatural.app.v.VChain
执行链 按v型依次执行, 上个处理结果为下个处理器的入参

S

scan(String, Consumer<Class<?>>) - 类 中的静态方法cn.xnatural.app.Utils
扫描类处理
scan(String, ClassLoader, Function<Class<?>, Boolean>) - 类 中的静态方法cn.xnatural.app.Utils
扫描类处理
ServerTpl - cn.xnatural.app中的类
服务模板类
ServerTpl(String) - 类 的构造器cn.xnatural.app.ServerTpl
 
ServerTpl() - 类 的构造器cn.xnatural.app.ServerTpl
 
set(String, Object) - 类 中的方法cn.xnatural.app.CacheSrv
设置缓存 取默认过期时间 30 分钟
set(String, Object, Duration) - 类 中的方法cn.xnatural.app.CacheSrv
设置缓存
set(String, Object, Function<CacheSrv.Record, Long>) - 类 中的方法cn.xnatural.app.CacheSrv
设置缓存
setAttr(String, Object) - 类 中的方法cn.xnatural.app.ServerTpl
设置属性
setMaxRows(int) - 类 中的方法cn.xnatural.app.util.DB
设置限制最大返回条数
sha1(byte[]) - 类 中的静态方法cn.xnatural.app.Utils
sha1 加密
showClassProp() - 类 中的方法cn.xnatural.app.util.Copier
包含 class 属性
shutdown() - 类 中的方法cn.xnatural.app.Devourer
关闭
shutdownHook - 类 中的变量cn.xnatural.app.AppContext
jvm关闭钩子. kill System.exit(0)
single(String, Class<T>, Object...) - 类 中的方法cn.xnatural.app.util.DB
查询单个值
socketCache - 类 中的静态变量cn.xnatural.app.util.Httper
 
SocketHolder(Socket, String) - 类 的构造器cn.xnatural.app.util.Httper.SocketHolder
 
sourceMap - 类 中的变量cn.xnatural.app.AppContext
服务对象源
speed(String) - 类 中的方法cn.xnatural.app.Devourer
速度限制 线程会按一定频率sleep
SR - 类 中的静态变量cn.xnatural.app.Utils
 
src - 类 中的变量cn.xnatural.app.util.Copier
源对象
start() - 类 中的方法cn.xnatural.app.AppContext
 
start(String) - 类 中的方法cn.xnatural.app.AppContext
启动
start - 类 中的变量cn.xnatural.app.Pause
开始时间
startup - 类 中的变量cn.xnatural.app.AppContext
启动时间
stop() - 类 中的方法cn.xnatural.app.util.Tailer
停止
stopFlag - 类 中的变量cn.xnatural.app.util.Tailer
 
suspend(Duration) - 类 中的方法cn.xnatural.app.Devourer
暂停一段时间 NOTE 继续执行条件: 必须有新的任务入对, 或者手动调用 Devourer.resume()
suspend(Predicate<Devourer>) - 类 中的方法cn.xnatural.app.Devourer
设置暂停条件 使用 Devourer.resume() 恢复

T

tail(String) - 类 中的方法cn.xnatural.app.util.Tailer
tail 文件内容监控
tail(String, Integer) - 类 中的方法cn.xnatural.app.util.Tailer
tail 文件内容监控
Tailer - cn.xnatural.app.util中的类
文件内容监控器(类linux tail)
Tailer() - 类 的构造器cn.xnatural.app.util.Tailer
 
tailer() - 类 中的静态方法cn.xnatural.app.Utils
文件内容监控器(类linux tail)
target - 类 中的变量cn.xnatural.app.util.Copier
目标对象
textBody(String) - 类 中的方法cn.xnatural.app.util.Httper
 
th - 类 中的变量cn.xnatural.app.util.Tailer
 
time - 类 中的变量cn.xnatural.app.Counter
 
to(Object, Class<T>) - 类 中的静态方法cn.xnatural.app.Utils
类型转换
toJavabean() - 类 中的方法cn.xnatural.app.util.Copier
 
toString() - 类 中的方法cn.xnatural.app.CacheSrv
 
toString() - 类 中的方法cn.xnatural.app.Devourer
 
toString() - 类 中的方法cn.xnatural.app.Lazier
 
toString() - 类 中的方法cn.xnatural.app.util.DB
 
toStringType - 类 中的变量cn.xnatural.app.util.Httper
 
toStringType(String) - 类 中的方法cn.xnatural.app.util.Httper
response content-type 的结果需要转成 String
trans(Supplier<T>) - 类 中的方法cn.xnatural.app.util.DB
开启一个事务
trigger() - 类 中的方法cn.xnatural.app.Devourer
不断的从 Devourer.waiting 对列中取出执行
tryLock() - 类 中的方法cn.xnatural.app.LatchLock
获取一个锁 final LatchLock lock = new LatchLock(); lock.limit(3); // 设置并发限制.
txConn - 类 中的静态变量cn.xnatural.app.util.DB
事务连接,保存在线程上下文

U

updateTime - 类 中的变量cn.xnatural.app.CacheSrv.Record
 
urlStr - 类 中的变量cn.xnatural.app.util.Httper
 
useLast - 类 中的变量cn.xnatural.app.Devourer
使用最后入队想任务/任务最后有效 Devourer.useLast(boolean)
useLast(boolean) - 类 中的方法cn.xnatural.app.Devourer
是否只使用队列最后一个, 清除队列前面的任务 适合: 入队的频率比出队高, 前面的任务可有可无
Utils - cn.xnatural.app中的类
常用工具集
Utils() - 类 的构造器cn.xnatural.app.Utils
 

V

valid() - 类 中的方法cn.xnatural.app.CacheSrv.Record
是否有效
value - 类 中的变量cn.xnatural.app.CacheSrv.Record
 
value - 类 中的变量cn.xnatural.app.util.Httper.Param
 
valueConverter - 类 中的变量cn.xnatural.app.util.Copier
属性值转换器配置 源属性名 -> 值转换函数
valueGetter - 类 中的变量cn.xnatural.app.util.Copier
客外属性源 计算器
VChain - cn.xnatural.app.v中的类
V链: 执行过程先进后出(类似V型)
VChain() - 类 的构造器cn.xnatural.app.v.VChain
 
VProcessor - cn.xnatural.app.v中的接口
V 链VChain中的处理器节点

W

waiting - 类 中的变量cn.xnatural.app.Devourer
任务执行对列
withConn(Function<Connection, T>) - 类 中的方法cn.xnatural.app.util.DB
执行连接
wrapEpForSource(Object) - 类 中的方法cn.xnatural.app.AppContext
为每个Source包装EP
wrapExecForSource(Object) - 类 中的方法cn.xnatural.app.AppContext
为 source 包装 Executor 当系统线程池忙的时候, 会为创建服务创建一个独用的线程池: 抵御流量突发,同时保证各个业务的任务隔离(即使流量突发也不会影响其他业务导致整个系统被拖垮), 另外还可以抵御线程池隔离时各个业务设置不合理导致的资源分配不均,任务阻塞或者空转问题 分发新任务策略: 当系统线程池忙, 则使用服务自己的线程池; 默认都用系统线程池

_

_data - 类 中的变量cn.xnatural.app.CacheSrv
数据存放
_ep - 类 中的变量cn.xnatural.app.AppContext
初始化 事件中心
_exec - 类 中的变量cn.xnatural.app.AppContext
初始化一个 ThreadPoolExecutor NOTE: 如果线程池在不停的创建线程, 有可能是因为 提交的 Runnable 的异常没有被处理.
_hashdata - 类 中的变量cn.xnatural.app.CacheSrv
hash 数据缓存
_id - 类 中的变量cn.xnatural.app.AppContext
实例Id NOTE: 保证唯一
_limit - 类 中的变量cn.xnatural.app.CacheSrv
 
_name - 类 中的变量cn.xnatural.app.AppContext
系统名字.
A B C D E F G H I J K L M N O P Q R S T U V W _ 
跳过导航链接

Copyright © 2023. All rights reserved.