public final class FactoryManager
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected LoadBalance.Factory |
loadBalanceFactory |
构造器和说明 |
---|
FactoryManager() |
限定符和类型 | 方法和说明 |
---|---|
static FactoryManager |
getGlobal() |
boolean |
hasMvcFactory() |
void |
loadBalanceFactory(LoadBalance.Factory factory)
配置负载工厂
|
MvcFactory |
mvcFactory() |
void |
mvcFactory(MvcFactory factory) |
LoadBalance |
newLoadBalance(java.lang.String group,
java.lang.String service)
创建负载
|
<T> java.lang.ThreadLocal<T> |
newThreadLocal(java.lang.Class<?> applyFor,
boolean inheritance0)
创建线程状态
|
<T> void |
threadLocalFactory(java.util.function.BiFunction<java.lang.Class<?>,java.lang.Boolean,java.lang.ThreadLocal> factory)
配置线程状态管理工厂
|
protected LoadBalance.Factory loadBalanceFactory
public static FactoryManager getGlobal()
public <T> void threadLocalFactory(java.util.function.BiFunction<java.lang.Class<?>,java.lang.Boolean,java.lang.ThreadLocal> factory)
public <T> java.lang.ThreadLocal<T> newThreadLocal(java.lang.Class<?> applyFor, boolean inheritance0)
applyFor
- 申请应用的类inheritance0
- 原始可继随性public void loadBalanceFactory(LoadBalance.Factory factory)
public LoadBalance newLoadBalance(java.lang.String group, java.lang.String service)
public boolean hasMvcFactory()
public MvcFactory mvcFactory()
public void mvcFactory(MvcFactory factory)