Class ConfigBase.Builder<T extends ConfigBase.Builder<T>>

    • Method Detail

      • getThis

        public abstract T getThis()
        To prevent unchecked cast warning.
      • setUseSystemProxy

        public T setUseSystemProxy​(boolean useSystemProxy)
        Deprecated.
        Please use a custom HttpAsyncClientBuilder when instantiating the ApacheHttpRequester instead.
        Makes the underlying Apache HTTP Client to use JVM/System settings for the proxy.
      • setBatchSize

        public T setBatchSize​(int batchSize)
        Overrides the default batch size for save methods. Default = 1000 objects per chunk.
      • setReadTimeOut

        public T setReadTimeOut​(Integer readTimeOut)
        Overrides the default read timeout. Default = 1000ms In milliseconds
      • setWriteTimeOut

        public T setWriteTimeOut​(Integer writeTimeOut)
        Overrides the default write timeout. Default = 30000ms In milliseconds
      • setConnectTimeOut

        public T setConnectTimeOut​(Integer connectTimeOut)
        Overrides the default connect timeout. Default = 2000ms In milliseconds
      • setHosts

        public T setHosts​(@Nonnull
                          List<StatefulHost> customHosts)
        Sets a list of specific host to target. Default hosts will be overridden.
      • setExecutorService

        public T setExecutorService​(ExecutorService executorService)
        Sets a custom executor service. Default ForkJoinPool will be overridden.
      • addExtraHeaders

        public T addExtraHeaders​(@Nonnull
                                 String headerKey,
                                 @Nonnull
                                 String headerValue)
        Associates the specified value with the specified key in this map. If the map previously contained a mapping for the key, the old value is replaced.
      • addExtraHeaders

        public T addExtraHeaders​(Map<String,​String> headers)
        Copies all of the mappings from the specified map to this map. These mappings will replace any mappings that this map had for any of the keys currently in the specified map.