Skip navigation links
A B C D E F G H I L M N O P R S T U V W 

A

AbstractLogAop - Class in cn.detachment.frame.core.aop
 
AbstractLogAop() - Constructor for class cn.detachment.frame.core.aop.AbstractLogAop
 
around(ProceedingJoinPoint) - Method in class cn.detachment.frame.core.aop.AbstractLogAop
around
ATOMIC_LONG - Static variable in class cn.detachment.frame.core.util.TraceIDUtil
 

B

BAD_REQUEST - Static variable in interface cn.detachment.frame.core.constant.HttpCode
 
BadRequsetException(String, Throwable) - Static method in exception cn.detachment.frame.core.exception.ServiceException
 
buildError(int, String) - Static method in class cn.detachment.frame.core.factory.ResultFactory
 
buildError(int, T, String) - Static method in class cn.detachment.frame.core.factory.ResultFactory
 
buildSuccess(T) - Static method in class cn.detachment.frame.core.factory.ResultFactory
 
buildSuccess(T, String) - Static method in class cn.detachment.frame.core.factory.ResultFactory
 
buildSuccess() - Static method in class cn.detachment.frame.core.factory.ResultFactory
 

C

CharSetEnum - Interface in cn.detachment.frame.core.constant
 
checkClientTrusted(X509Certificate[], String) - Method in class cn.detachment.frame.core.http.SSLHandler
 
checkServerTrusted(X509Certificate[], String) - Method in class cn.detachment.frame.core.http.SSLHandler
 
cn.detachment.frame.core.annoation - package cn.detachment.frame.core.annoation
 
cn.detachment.frame.core.aop - package cn.detachment.frame.core.aop
 
cn.detachment.frame.core.bean - package cn.detachment.frame.core.bean
 
cn.detachment.frame.core.constant - package cn.detachment.frame.core.constant
 
cn.detachment.frame.core.exception - package cn.detachment.frame.core.exception
 
cn.detachment.frame.core.factory - package cn.detachment.frame.core.factory
 
cn.detachment.frame.core.http - package cn.detachment.frame.core.http
 
cn.detachment.frame.core.util - package cn.detachment.frame.core.util
 
code - Variable in class cn.detachment.frame.core.bean.Result
 
code - Variable in exception cn.detachment.frame.core.exception.ServiceException
 
copy(Class<?>, Class<?>, String...) - Static method in class cn.detachment.frame.core.util.StupidBeanUtil
 
currentTimeMillis() - Method in enum cn.detachment.frame.core.util.SystemClock
 

D

data - Variable in class cn.detachment.frame.core.bean.Result
 
datacenterId - Variable in class cn.detachment.frame.core.util.SnowflakeIdWorker
数据中心ID(0~31)
datacenterIdBits - Variable in class cn.detachment.frame.core.util.SnowflakeIdWorker
数据标识id所占的位数
datacenterIdShift - Variable in class cn.detachment.frame.core.util.SnowflakeIdWorker
数据标识id向左移17位(12+5)
DateUtil - Class in cn.detachment.frame.core.util
 
DateUtil() - Constructor for class cn.detachment.frame.core.util.DateUtil
 
defaultCfg - Static variable in class cn.detachment.frame.core.http.HttpUtil
 

E

excludeName - Variable in class cn.detachment.frame.core.aop.AbstractLogAop
 

F

find(String) - Static method in enum cn.detachment.frame.core.constant.SSLVersion
 
FORBID - Static variable in interface cn.detachment.frame.core.constant.HttpCode
 
formatNameToDb(String) - Static method in class cn.detachment.frame.core.util.StupidBeanUtil
将驼峰字符串格式化为xx_xx_xx
formatNameToHump(String) - Static method in class cn.detachment.frame.core.util.StupidBeanUtil
 
freqMap - Static variable in class cn.detachment.frame.core.util.RandmHttpUserAgent
 

G

GBK - Static variable in interface cn.detachment.frame.core.constant.CharSetEnum
 
get(CloseableHttpClient, String, HttpUtil.OperatorResponse) - Static method in class cn.detachment.frame.core.http.HttpUtil
 
get(CloseableHttpClient, String, RequestConfig, HttpUtil.OperatorResponse) - Static method in class cn.detachment.frame.core.http.HttpUtil
 
get(CloseableHttpClient, String, Map<String, Object>, RequestConfig, HttpUtil.OperatorResponse) - Static method in class cn.detachment.frame.core.http.HttpUtil
 
get(CloseableHttpClient, String) - Static method in class cn.detachment.frame.core.http.HttpUtil
 
get(CloseableHttpClient, String, Map<String, Object>) - Static method in class cn.detachment.frame.core.http.HttpUtil
 
get(CloseableHttpClient, String, Map<String, String>, Map<String, Object>, RequestConfig, String) - Static method in class cn.detachment.frame.core.http.HttpUtil
 
get(CloseableHttpClient, String, Map<String, String>, Map<String, Object>, RequestConfig, String, HttpUtil.OperatorResponse) - Static method in class cn.detachment.frame.core.http.HttpUtil
 
getAcceptedIssuers() - Method in class cn.detachment.frame.core.http.SSLHandler
 
getAddress() - Static method in class cn.detachment.frame.core.util.IpUtil
get address
getCode() - Method in exception cn.detachment.frame.core.exception.ServiceException
 
getFirstValidAddress() - Static method in class cn.detachment.frame.core.util.IpUtil
 
getIp() - Static method in class cn.detachment.frame.core.util.IpUtil
get ip
getIpPort(int) - Static method in class cn.detachment.frame.core.util.IpUtil
get ip:port
getLogVal(ProceedingJoinPoint, Object) - Method in class cn.detachment.frame.core.aop.AbstractLogAop
 
getObjectName(Class<T>) - Static method in class cn.detachment.frame.core.util.StupidBeanUtil
 
getRandomUserAgent() - Static method in class cn.detachment.frame.core.util.RandmHttpUserAgent
 
getSSLConnectionSocketFactory(SSLVersion) - Method in class cn.detachment.frame.core.http.SSLUtil
 
getSSLContext(SSLVersion) - Static method in class cn.detachment.frame.core.http.SSLUtil
 
getSSLFactory(SSLVersion) - Method in class cn.detachment.frame.core.http.SSLUtil
 
getTargetMethod(ProceedingJoinPoint, Class<?>) - Method in class cn.detachment.frame.core.aop.AbstractLogAop
 
getValidAddressByInetAddress() - Static method in class cn.detachment.frame.core.util.IpUtil
 

H

HttpClientFactory - Class in cn.detachment.frame.core.http
httpClientCreator
HttpClientFactory() - Constructor for class cn.detachment.frame.core.http.HttpClientFactory
 
HttpCode - Interface in cn.detachment.frame.core.constant
 
httpRequest(CloseableHttpClient, RequestBuilder, Map<String, String>) - Static method in class cn.detachment.frame.core.http.HttpUtil
 
httpRequest(CloseableHttpClient, RequestBuilder, Map<String, String>, String) - Static method in class cn.detachment.frame.core.http.HttpUtil
 
httpRequest(CloseableHttpClient, RequestBuilder, Map<String, String>, RequestConfig, String) - Static method in class cn.detachment.frame.core.http.HttpUtil
 
httpRequest(CloseableHttpClient, RequestBuilder, Map<String, String>, RequestConfig, String, HttpUtil.OperatorResponse) - Static method in class cn.detachment.frame.core.http.HttpUtil
httpRequest 1.
HttpUtil - Class in cn.detachment.frame.core.http
 
HttpUtil() - Constructor for class cn.detachment.frame.core.http.HttpUtil
 
HttpUtil.OperatorResponse - Interface in cn.detachment.frame.core.http
OperatorResponse 自定义操作httpClient返回结果

I

IgnoreLog - Annotation Type in cn.detachment.frame.core.annoation
 
incrementAndGet() - Static method in class cn.detachment.frame.core.util.TraceIDUtil
 
INDEX_INIT_VALUE - Static variable in class cn.detachment.frame.core.aop.AbstractLogAop
 
inflateConfig(RequestBuilder, RequestConfig) - Static method in class cn.detachment.frame.core.http.HttpUtil
 
inflateHeader(RequestBuilder, Map<String, String>) - Static method in class cn.detachment.frame.core.http.HttpUtil
 
initExcludeList() - Method in class cn.detachment.frame.core.aop.AbstractLogAop
initExcludeList 初始化不打印返回值的方法名前缀
IpUtil - Class in cn.detachment.frame.core.util
IpUtil
IpUtil() - Constructor for class cn.detachment.frame.core.util.IpUtil
 
ISO_8859_1 - Static variable in interface cn.detachment.frame.core.constant.CharSetEnum
 
isPool - Variable in class cn.detachment.frame.core.http.HttpClientFactory
是否设置线程池

L

lastTimestamp - Variable in class cn.detachment.frame.core.util.SnowflakeIdWorker
上次生成ID的时间截
LOCAL_ADDRESS - Static variable in class cn.detachment.frame.core.util.IpUtil
 
logger - Static variable in class cn.detachment.frame.core.http.HttpClientFactory
 
logger - Static variable in class cn.detachment.frame.core.http.HttpUtil
 
logger - Static variable in class cn.detachment.frame.core.http.SSLUtil
 
logger - Static variable in class cn.detachment.frame.core.util.IpUtil
 
LOGGER - Static variable in class cn.detachment.frame.core.util.TraceIDUtil
 
logParams(Class<?>, Method, Logger, Object) - Method in class cn.detachment.frame.core.aop.AbstractLogAop
 
logResponse(Class<?>, Method, Logger, Long, Object) - Method in class cn.detachment.frame.core.aop.AbstractLogAop
 

M

main(String[]) - Static method in class cn.detachment.frame.core.http.HttpUtil
 
main(String[]) - Static method in class cn.detachment.frame.core.http.SSLUtil
 
main(String[]) - Static method in class cn.detachment.frame.core.util.SnowflakeIdWorker
测试
maxDatacenterId - Variable in class cn.detachment.frame.core.util.SnowflakeIdWorker
支持的最大数据标识id,结果是31
maxWorkerId - Variable in class cn.detachment.frame.core.util.SnowflakeIdWorker
支持的最大机器id,结果是31 (这个移位算法可以很快的计算出几位二进制数所能表示的最大十进制数)
monitor - Static variable in class cn.detachment.frame.core.aop.AbstractLogAop
 
msg - Variable in class cn.detachment.frame.core.bean.Result
 

N

name - Variable in enum cn.detachment.frame.core.constant.SSLVersion
 
newInstance() - Static method in class cn.detachment.frame.core.http.HttpClientFactory
 
nextId() - Method in class cn.detachment.frame.core.util.SnowflakeIdWorker
获得下一个ID (该方法是线程安全的)
now - Variable in enum cn.detachment.frame.core.util.SystemClock
 

O

operator(HttpResponse) - Method in interface cn.detachment.frame.core.http.HttpUtil.OperatorResponse
 

P

PARAM_ERROR - Static variable in interface cn.detachment.frame.core.constant.HttpCode
 
paramError(T, String) - Static method in class cn.detachment.frame.core.factory.ResultFactory
 
pintCut() - Method in class cn.detachment.frame.core.aop.AbstractLogAop
 
pool(int, int) - Method in class cn.detachment.frame.core.http.HttpClientFactory
pool
post(CloseableHttpClient, String, Map<String, Object>) - Static method in class cn.detachment.frame.core.http.HttpUtil
 
post(CloseableHttpClient, String, Map<String, Object>, String) - Static method in class cn.detachment.frame.core.http.HttpUtil
 
post(CloseableHttpClient, String, Map<String, String>, Map<String, Object>, RequestConfig, String) - Static method in class cn.detachment.frame.core.http.HttpUtil
 
postFile(CloseableHttpClient, String, Map<String, Objects>, Map<String, File>) - Static method in class cn.detachment.frame.core.http.HttpUtil
 
postFile(CloseableHttpClient, String, Map<String, String>, Map<String, Objects>, Map<String, File>, RequestConfig) - Static method in class cn.detachment.frame.core.http.HttpUtil
 
postJSON(CloseableHttpClient, String, Object) - Static method in class cn.detachment.frame.core.http.HttpUtil
 
postJSON(CloseableHttpClient, String, Object, RequestConfig) - Static method in class cn.detachment.frame.core.http.HttpUtil
 
postJSON(CloseableHttpClient, String, Map<String, String>, Object, RequestConfig, String) - Static method in class cn.detachment.frame.core.http.HttpUtil
 
proxy(String, int) - Method in class cn.detachment.frame.core.http.HttpClientFactory
 

R

RandmHttpUserAgent - Class in cn.detachment.frame.core.util
 
RandmHttpUserAgent() - Constructor for class cn.detachment.frame.core.util.RandmHttpUserAgent
 
REDIRECT - Static variable in interface cn.detachment.frame.core.constant.HttpCode
 
REDIRECT_HEADER - Static variable in class cn.detachment.frame.core.http.HttpUtil
 
Result<T> - Class in cn.detachment.frame.core.bean
 
Result() - Constructor for class cn.detachment.frame.core.bean.Result
 
Result(int, T, String) - Constructor for class cn.detachment.frame.core.bean.Result
 
Result(int, T) - Constructor for class cn.detachment.frame.core.bean.Result
 
Result(int, String) - Constructor for class cn.detachment.frame.core.bean.Result
 
ResultFactory - Class in cn.detachment.frame.core.factory
 
ResultFactory() - Constructor for class cn.detachment.frame.core.factory.ResultFactory
 
retry(int) - Method in class cn.detachment.frame.core.http.HttpClientFactory
 
retry(int, boolean) - Method in class cn.detachment.frame.core.http.HttpClientFactory
retry

S

sequence - Variable in class cn.detachment.frame.core.util.SnowflakeIdWorker
毫秒内序列(0~4095)
sequenceBits - Variable in class cn.detachment.frame.core.util.SnowflakeIdWorker
序列在id中占的位数
sequenceMask - Variable in class cn.detachment.frame.core.util.SnowflakeIdWorker
生成序列的掩码,这里为4095 (0b111111111111=0xfff=4095)
serialVersionUID - Static variable in exception cn.detachment.frame.core.exception.ServiceException
 
SERVER_ERROR - Static variable in interface cn.detachment.frame.core.constant.HttpCode
 
serverError(String) - Static method in class cn.detachment.frame.core.factory.ResultFactory
 
ServiceException - Exception in cn.detachment.frame.core.exception
 
ServiceException(Result) - Constructor for exception cn.detachment.frame.core.exception.ServiceException
 
ServiceException(int, String) - Constructor for exception cn.detachment.frame.core.exception.ServiceException
 
ServiceException(String, Throwable) - Constructor for exception cn.detachment.frame.core.exception.ServiceException
 
ServiceException(int, String, Throwable) - Constructor for exception cn.detachment.frame.core.exception.ServiceException
 
ServiceException(String, Throwable, boolean, boolean) - Constructor for exception cn.detachment.frame.core.exception.ServiceException
 
setCode(int) - Method in exception cn.detachment.frame.core.exception.ServiceException
 
SnowflakeIdWorker - Class in cn.detachment.frame.core.util
Twitter_Snowflake
SnowFlake的结构如下(每部分用-分开):
0 - 0000000000 0000000000 0000000000 0000000000 0 - 00000 - 00000 - 000000000000
1位标识,由于long基本类型在Java中是带符号的,最高位是符号位,正数是0,负数是1,所以id一般是正数,最高位是0
41位时间截(毫秒级),注意,41位时间截不是存储当前时间的时间截,而是存储时间截的差值(当前时间截 - 开始时间截) 得到的值),这里的的开始时间截,一般是我们的id生成器开始使用的时间,由我们程序来指定的(如下下面程序IdWorker类的startTime属性)。41位的时间截,可以使用69年,年T = (1L << 41) / (1000L * 60 * 60 * 24 * 365) = 69
10位的数据机器位,可以部署在1024个节点,包括5位datacenterId和5位workerId
12位序列,毫秒内的计数,12位的计数顺序号支持每个节点每毫秒(同一机器,同一时间截)产生4096个ID序号
加起来刚好64位,为一个Long型。
SnowFlake的优点是,整体上按照时间自增排序,并且整个分布式系统内不会产生ID碰撞(由数据中心ID和机器ID作区分),并且效率较高,经测试,SnowFlake每秒能够产生26万ID左右。
SnowflakeIdWorker(long, long) - Constructor for class cn.detachment.frame.core.util.SnowflakeIdWorker
构造函数
ssl() - Method in class cn.detachment.frame.core.http.HttpClientFactory
 
SSLFCreateException - Exception in cn.detachment.frame.core.exception
SSLSocketFactoryCreateException
SSLFCreateException(String) - Constructor for exception cn.detachment.frame.core.exception.SSLFCreateException
 
SSLFCreateException(Throwable) - Constructor for exception cn.detachment.frame.core.exception.SSLFCreateException
 
SSLHandler - Class in cn.detachment.frame.core.http
 
SSLHandler() - Constructor for class cn.detachment.frame.core.http.SSLHandler
 
sslHandler - Static variable in class cn.detachment.frame.core.http.SSLUtil
 
SSLUtil - Class in cn.detachment.frame.core.http
ssl util
SSLUtil() - Constructor for class cn.detachment.frame.core.http.SSLUtil
 
SSLVersion - Enum in cn.detachment.frame.core.constant
 
SSLVersion(String) - Constructor for enum cn.detachment.frame.core.constant.SSLVersion
 
StupidBeanUtil - Class in cn.detachment.frame.core.util
 
StupidBeanUtil() - Constructor for class cn.detachment.frame.core.util.StupidBeanUtil
 
SUCCESS - Static variable in interface cn.detachment.frame.core.constant.HttpCode
 
SystemClock - Enum in cn.detachment.frame.core.util
 
SystemClock(long, int) - Constructor for enum cn.detachment.frame.core.util.SystemClock
 

T

THREAD_LOCAL - Static variable in class cn.detachment.frame.core.aop.AbstractLogAop
 
tilNextMillis(long) - Method in class cn.detachment.frame.core.util.SnowflakeIdWorker
阻塞到下一个毫秒,直到获得新的时间戳
timeGen() - Method in class cn.detachment.frame.core.util.SnowflakeIdWorker
返回以毫秒为单位的当前时间
timestampLeftShift - Variable in class cn.detachment.frame.core.util.SnowflakeIdWorker
时间截向左移22位(5+5+12)
TraceIDUtil - Class in cn.detachment.frame.core.util
 
TraceIDUtil() - Constructor for class cn.detachment.frame.core.util.TraceIDUtil
 
transferJSONToString(Object) - Static method in class cn.detachment.frame.core.http.HttpUtil
 
twepoch - Variable in class cn.detachment.frame.core.util.SnowflakeIdWorker
开始时间截 (2015-01-01)

U

uaMap - Static variable in class cn.detachment.frame.core.util.RandmHttpUserAgent
 
UnknownException(String, Throwable) - Static method in exception cn.detachment.frame.core.exception.ServiceException
 
UnsupportedSSLVersionException - Exception in cn.detachment.frame.core.exception
 
UnsupportedSSLVersionException() - Constructor for exception cn.detachment.frame.core.exception.UnsupportedSSLVersionException
 
UnsupportedSSLVersionException(String) - Constructor for exception cn.detachment.frame.core.exception.UnsupportedSSLVersionException
 
UTF8 - Static variable in interface cn.detachment.frame.core.constant.CharSetEnum
 

V

valueOf(String) - Static method in enum cn.detachment.frame.core.constant.SSLVersion
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum cn.detachment.frame.core.util.SystemClock
Returns the enum constant of this type with the specified name.
values() - Static method in enum cn.detachment.frame.core.constant.SSLVersion
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum cn.detachment.frame.core.util.SystemClock
Returns an array containing the constants of this enum type, in the order they are declared.
verify(String, SSLSession) - Method in class cn.detachment.frame.core.http.SSLHandler
 

W

workerId - Variable in class cn.detachment.frame.core.util.SnowflakeIdWorker
工作机器ID(0~31)
workerIdBits - Variable in class cn.detachment.frame.core.util.SnowflakeIdWorker
机器id所占的位数
workerIdShift - Variable in class cn.detachment.frame.core.util.SnowflakeIdWorker
机器ID向左移12位
A B C D E F G H I L M N O P R S T U V W 
Skip navigation links

Copyright © 2020. All rights reserved.