Constructor and Description |
---|
BaseConfiguration() |
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public void setResultSelectTypeByName(String name)
public void setLogLevelByName(String name)
public void setLanguageByTag(String tag)
public void registerBotsFormatter(String registerBots)
registerBots
- registerBotspublic void setTimeUnitByName(String name)
public BlockingQueue<Runnable> getWorkQueue()
public BaseLocalThreadPool.PoolConfig getPoolConfig()
public void registerBot(String botCode, String path)
botCode
- bot账号path
- 上报地址,为一个完整的请求路径,例如:http://127.0.0.1:12345public void registerBot(String botCode, String ip, int port, String path)
botCode
- bot账号ip
- 上报地址的ipport
- 上报地址的端口path
- 如果存在,上报地址的路径public void registerBot(String path)
path
- 上报路径public void registerBot(String ip, int port, String path)
仅注册一个路径信息,信息分为ip、端口、一个可能存在的额外路径。开发者如果需要实现对于ip、端口、额外路径的转化规则,尝试重写toPath(String, int, String)
方法。默认情况下为转化为http协议路径。
ip
- ip地址port
- 端口path
- nullablepublic void registerBotAsDefault(String botCode, String path)
botCode
- bot账号path
- 上报地址,为一个完整的请求路径public void registerBotAsDefault(String botCode, String ip, int port, String path)
botCode
- bot账号ip
- 上报地址的ipport
- 上报地址的端口path
- 如果存在,上报地址的路径public void registerBotAsDefault(String path)
path
- 上报路径public void registerBotAsDefault(String ip, int port, String path)
仅注册一个路径信息,信息分为ip、端口、一个可能存在的额外路径。开发者如果需要实现对于ip、端口、额外路径的转化规则,尝试重写toPath(String, int, String)
方法。默认情况下为转化为http协议路径。
ip
- ip地址port
- 端口path
- nullablepublic BotInfo getDefaultBotInfo()
public void setDefaultBotInfo(BotInfo botInfo)
protected String toPath(String ip, int port, String path)
ip
- ip地址port
- 端口path
- 路径public PathAssembler getPathAssembler()
toPath(String, int, String)
获取路径拼接函数@Deprecated public String getLocalQQNick()
@Deprecated public T setLocalQQNick(String localQQNick)
@Deprecated public String getLocalQQCode()
@Deprecated public T setLocalQQCode(String localQQCode)
@Deprecated public LoginQQInfo getLoginQQInfo()
BotRuntime
,
BotManager
public String getEncode()
public String getCqPath()
@Deprecated public String getIp()
@Deprecated public T setIp(String ip)
@Deprecated public T setLoginQQInfo(LoginQQInfo loginQQInfo)
public DependGetter getDependGetter()
public T setDependGetter(DependGetter dependGetter)
public T setDependGetter(String packPath) throws ClassNotFoundException, InstantiationException, IllegalAccessException
public boolean isLocalServerEnable()
public T setLocalServerEnable(boolean localServerEnable)
public int getLocalServerPort()
public T setLocalServerPort(int localServerPort)
public final T getConfiguration()
public Integer getCorePoolSize()
public void setCorePoolSize(Integer corePoolSize)
public Integer getMaximumPoolSize()
public void setMaximumPoolSize(Integer maximumPoolSize)
public Long getKeepAliveTime()
public void setKeepAliveTime(Long keepAliveTime)
public TimeUnit getTimeUnit()
public void setTimeUnit(TimeUnit timeUnit)
public String getWorkQueueFrom()
public Double getBlockingFactor()
public void setBlockingFactor(Double blockingFactor)
public void setWorkQueueFrom(String workQueueFrom)
public void setWorkQueue(BlockingQueue<Runnable> workQueue)
public ThreadFactory getDefaultThreadFactory()
public void setDefaultThreadFactory(ThreadFactory defaultThreadFactory)
public void setPoolConfig(BaseLocalThreadPool.PoolConfig poolConfig)
public ResultSelectType getResultSelectType()
public void setResultSelectType(ResultSelectType resultSelectType)
public LogLevel getLogLevel()
public void setLogLevel(LogLevel logLevel)
public Locale getLanguage()
public void setLanguage(Locale language)
public Boolean getCheckVersion()
public void setCheckVersion(Boolean checkVersion)
public Boolean getEnableServer()
public void setEnableServer(Boolean enableServer)
Copyright © 2020. All rights reserved.