Class DefaultBotOptions

  • All Implemented Interfaces:
    BotOptions

    public class DefaultBotOptions
    extends Object
    implements BotOptions
    Version:
    1.0
    Author:
    Ruben Bermudez
    • Constructor Detail

      • DefaultBotOptions

        public DefaultBotOptions()
    • Method Detail

      • setBaseUrl

        public void setBaseUrl​(String baseUrl)
      • setMaxThreads

        public void setMaxThreads​(int maxThreads)
      • getMaxThreads

        public int getMaxThreads()
      • getRequestConfig

        public org.apache.http.client.config.RequestConfig getRequestConfig()
      • getMaxWebhookConnections

        public Integer getMaxWebhookConnections()
      • getHttpContext

        public org.apache.http.protocol.HttpContext getHttpContext()
      • setHttpContext

        public void setHttpContext​(org.apache.http.protocol.HttpContext httpContext)
      • setMaxWebhookConnections

        public void setMaxWebhookConnections​(Integer maxWebhookConnections)
      • getAllowedUpdates

        public List<String> getAllowedUpdates()
      • setAllowedUpdates

        public void setAllowedUpdates​(List<String> allowedUpdates)
      • setRequestConfig

        public void setRequestConfig​(org.apache.http.client.config.RequestConfig requestConfig)
        Parameters:
        requestConfig - Request config to be used in all Http requests
      • getBackOff

        public BackOff getBackOff()
      • setBackOff

        public void setBackOff​(BackOff BackOff)
        Parameters:
        BackOff - backOff to be used when long polling fails
      • getProxyHost

        public String getProxyHost()
      • setProxyHost

        public void setProxyHost​(String proxyHost)
      • getProxyPort

        public int getProxyPort()
      • setProxyPort

        public void setProxyPort​(int proxyPort)
      • getGetUpdatesTimeout

        public int getGetUpdatesTimeout()
      • setGetUpdatesTimeout

        public void setGetUpdatesTimeout​(int getUpdatesTimeout)
      • getGetUpdatesLimit

        public int getGetUpdatesLimit()
      • setGetUpdatesLimit

        public void setGetUpdatesLimit​(int getUpdatesLimit)