Package com.easemob.im.server
Class EMProperties
- java.lang.Object
-
- com.easemob.im.server.EMProperties
-
public class EMProperties extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EMProperties.Builder
static class
EMProperties.Realm
-
Constructor Summary
Constructors Constructor Description EMProperties(EMProperties.Realm realm, java.lang.String appKey, Credentials credentials, java.lang.String baseUri, EMProxy proxy, int httpConnectionPoolSize, int httpConnectionMaxIdleTime, int httpConnectionMaxLifeTime, int httpConnectionEvictInBackground, int httpConnectionPendingAcquireMaxCount, int httpConnectionPendingAcquireTimeout, int nettyWorkerCount, java.lang.String serverTimezone, int agoraTokenExpireInSeconds, reactor.netty.transport.logging.AdvancedByteBufFormat httpLogFormat, boolean validateUserName)
EMProperties(java.lang.String baseUri, java.lang.String appKey, EMProxy proxy, java.lang.String clientId, java.lang.String clientSecret, int httpConnectionPoolSize, java.lang.String serverTimezone, int httpConnectionMaxIdleTime, int httpConnectionMaxLifeTime, int httpConnectionEvictInBackground, int nettyWorkerCount, int httpConnectionPendingAcquireMaxCount, int httpConnectionPendingAcquireTimeout)
Deprecated.usebuilder()
instead.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EMProperties.Builder
builder()
int
getAgoraTokenExpireInSeconds()
java.lang.String
getAppCert()
java.lang.String
getAppId()
java.lang.String
getAppkey()
java.lang.String
getAppKey()
java.lang.String
getAppkeySlashDelimited()
java.lang.String
getAppkeyUrlEncoded()
java.lang.String
getBaseUri()
java.lang.String
getClientId()
java.lang.String
getClientSecret()
Credentials
getCredentials()
int
getHttpConnectionEvictInBackground()
int
getHttpConnectionMaxIdleTime()
int
getHttpConnectionMaxLifeTime()
int
getHttpConnectionPendingAcquireMaxCount()
int
getHttpConnectionPendingAcquireTimeout()
int
getHttpConnectionPoolSize()
reactor.netty.transport.logging.AdvancedByteBufFormat
getHttpLogFormat()
int
getNettyWorkerCount()
EMProxy
getProxy()
EMProperties.Realm
getRealm()
java.lang.String
getServerTimezone()
boolean
getValidateUserName()
java.lang.String
toString()
-
-
-
Constructor Detail
-
EMProperties
public EMProperties(EMProperties.Realm realm, java.lang.String appKey, Credentials credentials, java.lang.String baseUri, EMProxy proxy, int httpConnectionPoolSize, int httpConnectionMaxIdleTime, int httpConnectionMaxLifeTime, int httpConnectionEvictInBackground, int httpConnectionPendingAcquireMaxCount, int httpConnectionPendingAcquireTimeout, int nettyWorkerCount, java.lang.String serverTimezone, int agoraTokenExpireInSeconds, reactor.netty.transport.logging.AdvancedByteBufFormat httpLogFormat, boolean validateUserName)
-
EMProperties
@Deprecated public EMProperties(java.lang.String baseUri, java.lang.String appKey, EMProxy proxy, java.lang.String clientId, java.lang.String clientSecret, int httpConnectionPoolSize, java.lang.String serverTimezone, int httpConnectionMaxIdleTime, int httpConnectionMaxLifeTime, int httpConnectionEvictInBackground, int nettyWorkerCount, int httpConnectionPendingAcquireMaxCount, int httpConnectionPendingAcquireTimeout)
Deprecated.usebuilder()
instead.- Parameters:
baseUri
- baseUriappKey
- appKeyproxy
- proxyclientId
- clientIdclientSecret
- clientSecrethttpConnectionPoolSize
- httpConnectionPoolSizeserverTimezone
- serverTimezonehttpConnectionMaxIdleTime
- httpConnectionMaxIdleTimehttpConnectionMaxLifeTime
-httpConnectionEvictInBackground
-nettyWorkerCount
- nettyWorkerCounthttpConnectionPendingAcquireMaxCount
- httpConnectionPendingAcquireMaxCounthttpConnectionPendingAcquireTimeout
-
-
-
Method Detail
-
builder
public static EMProperties.Builder builder()
-
getAppkey
public java.lang.String getAppkey()
-
getClientId
public java.lang.String getClientId()
-
getClientSecret
public java.lang.String getClientSecret()
-
getAppId
public java.lang.String getAppId()
-
getAppCert
public java.lang.String getAppCert()
-
getRealm
public EMProperties.Realm getRealm()
-
getCredentials
public Credentials getCredentials()
-
getBaseUri
public java.lang.String getBaseUri()
-
getProxy
public EMProxy getProxy()
-
getAppkeyUrlEncoded
public java.lang.String getAppkeyUrlEncoded()
-
getAppkeySlashDelimited
public java.lang.String getAppkeySlashDelimited()
-
getHttpConnectionPoolSize
public int getHttpConnectionPoolSize()
-
getHttpConnectionMaxIdleTime
public int getHttpConnectionMaxIdleTime()
-
getHttpConnectionMaxLifeTime
public int getHttpConnectionMaxLifeTime()
-
getHttpConnectionEvictInBackground
public int getHttpConnectionEvictInBackground()
-
getHttpConnectionPendingAcquireMaxCount
public int getHttpConnectionPendingAcquireMaxCount()
-
getHttpConnectionPendingAcquireTimeout
public int getHttpConnectionPendingAcquireTimeout()
-
getServerTimezone
public java.lang.String getServerTimezone()
-
getAppKey
public java.lang.String getAppKey()
-
getAgoraTokenExpireInSeconds
public int getAgoraTokenExpireInSeconds()
-
getHttpLogFormat
public reactor.netty.transport.logging.AdvancedByteBufFormat getHttpLogFormat()
-
getValidateUserName
public boolean getValidateUserName()
-
getNettyWorkerCount
public int getNettyWorkerCount()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-