public class ZaiConfig extends Object
| Constructor and Description |
|---|
ZaiConfig(String apiKey)
Constructor with combined API secret key.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAlg()
Gets algorithm with system property and environment variable fallback.
|
String |
getApiKey()
Gets API secret key with system property and environment variable fallback.
|
String |
getBaseUrl()
Gets base URL with system property and environment variable fallback.
|
long |
getConnectionPoolKeepAliveDuration()
Gets connection pool keep alive duration with system property and environment
variable fallback.
|
int |
getConnectionPoolMaxIdleConnections()
Gets connection pool max idle connections with system property and environment
variable fallback.
|
TimeUnit |
getConnectionPoolTimeUnit()
Gets connection pool time unit (always returns the set value or default).
|
Integer |
getConnectTimeout()
Gets connect timeout with system property and environment variable fallback.
|
Map<String,String> |
getCustomHeaders()
Get custom headers
|
int |
getExpireMillis()
Gets expire millis with system property and environment variable fallback.
|
Integer |
getReadTimeout()
Gets read timeout with system property and environment variable fallback.
|
Integer |
getRequestTimeOut()
Gets request timeout with system property and environment variable fallback.
|
String |
getSource_channel()
Gets source channel with system property.
|
TimeUnit |
getTimeOutTimeUnit()
Gets timeout time unit (always returns the set value or null).
|
Integer |
getWriteTimeout()
Gets write timeout with system property and environment variable fallback.
|
boolean |
isDisableTokenCache()
Gets disable token cache flag with system property and environment variable
fallback.
|
void |
setApiKey(String apiKey)
Sets API key and parses it into id and secret components.
|
public ZaiConfig(String apiKey)
apiKey - combined secret key in format {apiKey}.{apiSecret}RuntimeException - if apiSecretKey format is invalidpublic void setApiKey(String apiKey)
apiKey - combined secret key in format {apiId}.{apiSecret}RuntimeException - if apiSecretKey format is invalidpublic String getBaseUrl()
public String getApiKey()
public int getExpireMillis()
public String getAlg()
public boolean isDisableTokenCache()
public int getConnectionPoolMaxIdleConnections()
public long getConnectionPoolKeepAliveDuration()
public TimeUnit getConnectionPoolTimeUnit()
public Integer getRequestTimeOut()
public Integer getConnectTimeout()
public Integer getReadTimeout()
public Integer getWriteTimeout()
public TimeUnit getTimeOutTimeUnit()
public String getSource_channel()
Copyright © 2025. All rights reserved.