public class DefaultBotOptions extends Object implements BotOptions
| Constructor and Description |
|---|
DefaultBotOptions() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAllowedUpdates() |
ExponentialBackOff |
getExponentialBackOff() |
int |
getMaxThreads() |
Integer |
getMaxWebhookConnections() |
org.apache.http.client.config.RequestConfig |
getRequestConfig() |
void |
setAllowedUpdates(List<String> allowedUpdates) |
void |
setExponentialBackOff(ExponentialBackOff exponentialBackOff) |
void |
setMaxThreads(int maxThreads) |
void |
setMaxWebhookConnections(Integer maxWebhookConnections) |
void |
setRequestConfig(org.apache.http.client.config.RequestConfig requestConfig) |
public void setMaxThreads(int maxThreads)
public int getMaxThreads()
public org.apache.http.client.config.RequestConfig getRequestConfig()
public Integer getMaxWebhookConnections()
public void setMaxWebhookConnections(Integer maxWebhookConnections)
public void setRequestConfig(org.apache.http.client.config.RequestConfig requestConfig)
requestConfig - Request config to be used in all Http requestspublic ExponentialBackOff getExponentialBackOff()
public void setExponentialBackOff(ExponentialBackOff exponentialBackOff)
exponentialBackOff - ExponentialBackOff to be used when long polling failsCopyright © 2017. All rights reserved.