public static class EMProperties.Builder extends Object
构造器和说明 |
---|
Builder() |
public EMProperties.Builder setRealm(EMProperties.Realm realm)
public EMProperties.Builder setAppkey(String appKey)
public EMProperties.Builder setClientId(String clientId)
public EMProperties.Builder setClientSecret(String clientSecret)
public EMProperties.Builder setAppId(String appId)
public EMProperties.Builder setAppCert(String appCert)
public EMProperties.Builder setBaseUri(String baseUri)
public EMProperties.Builder setProxy(EMProxy proxy)
public EMProperties.Builder setHttpConnectionPoolSize(int httpConnectionPoolSize)
public EMProperties.Builder setServerTimezone(String timezone)
public EMProperties.Builder setAgoraTokenExpireInSeconds(int agoraTokenExpireInSeconds)
public EMProperties.Builder setHttpLogFormat(reactor.netty.transport.logging.AdvancedByteBufFormat httpLogFormat)
public EMProperties.Builder turnOffUserNameValidation()
public EMProperties.Builder httpConnectionMaxIdleTime(int httpConnectionMaxIdleTime)
httpConnectionMaxIdleTime
- httpConnection最大空闲时间,单位:毫秒public EMProperties.Builder setHttpConnectionMaxIdleTime(int httpConnectionMaxIdleTime)
httpConnectionMaxIdleTime
- httpConnection最大空闲时间,单位:毫秒public EMProperties.Builder setHttpConnectionMaxLifeTime(int httpConnectionMaxLifeTime)
httpConnectionMaxLifeTime
- httpConnection最大存活时间,单位:毫秒public EMProperties.Builder setNettyWorkerCount(int nettyWorkerCount)
nettyWorkerCount
- netty最大工作线程数public EMProperties.Builder setHttpConnectionPendingAcquireMaxCount(int httpConnectionPendingAcquireMaxCount)
httpConnectionPendingAcquireMaxCount
- pendingAcquire最大数量public EMProperties.Builder setHttpConnectionPendingAcquireTimeout(int httpConnectionPendingAcquireTimeout)
httpConnectionPendingAcquireTimeout
- pendingAcquire超时时间,单位:毫秒public EMProperties.Builder setHttpConnectionEvictInBackground(int httpConnectionEvictInBackground)
httpConnectionEvictInBackground
- 后台检查连接池中适用于删除连接的时间间隔,单位:毫秒public EMProperties build()
Copyright © 2024. All rights reserved.