Package com.github.twitch4j.extensions
Class TwitchExtensionsBuilder
java.lang.Object
com.github.twitch4j.extensions.TwitchExtensionsBuilder
public class TwitchExtensionsBuilder
extends java.lang.Object
Twitch API - Extensions
-
Method Summary
Modifier and Type Method Description TwitchExtensionsbuild()Twitch API Client (Extensions)static TwitchExtensionsBuilderbuilder()Initialize the builderjava.lang.StringgetClientId()Client Idjava.lang.StringgetClientSecret()Client Secretfeign.Logger.LevelgetLogLevel()you can overwrite the feign loglevel to print the full requests + responses if neededcom.github.twitch4j.common.config.ProxyConfiggetProxyConfig()Proxy ConfigurationintgetRequestQueueSize()HTTP Request Queue SizelonggetTimeout()Default Timeoutjava.lang.StringgetUserAgent()User AgentTwitchExtensionsBuilderwithClientId(java.lang.String clientId)Client IdTwitchExtensionsBuilderwithClientSecret(java.lang.String clientSecret)Client SecretTwitchExtensionsBuilderwithLogLevel(feign.Logger.Level logLevel)you can overwrite the feign loglevel to print the full requests + responses if neededTwitchExtensionsBuilderwithProxyConfig(com.github.twitch4j.common.config.ProxyConfig proxyConfig)Proxy ConfigurationTwitchExtensionsBuilderwithRequestQueueSize(int requestQueueSize)HTTP Request Queue SizeTwitchExtensionsBuilderwithTimeout(long timeout)Default TimeoutTwitchExtensionsBuilderwithUserAgent(java.lang.String userAgent)User AgentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
build
Twitch API Client (Extensions)- Returns:
- TwitchExtensions
-
builder
Initialize the builder- Returns:
- Twitch Extensions Builder
-
getClientId
public java.lang.String getClientId()Client Id -
getClientSecret
public java.lang.String getClientSecret()Client Secret -
getUserAgent
public java.lang.String getUserAgent()User Agent -
getTimeout
public long getTimeout()Default Timeout -
getRequestQueueSize
public int getRequestQueueSize()HTTP Request Queue Size -
getLogLevel
public feign.Logger.Level getLogLevel()you can overwrite the feign loglevel to print the full requests + responses if needed -
getProxyConfig
public com.github.twitch4j.common.config.ProxyConfig getProxyConfig()Proxy Configuration -
withClientId
Client Id- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withClientSecret
Client Secret- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withUserAgent
User Agent- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTimeout
Default Timeout- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withRequestQueueSize
HTTP Request Queue Size- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withLogLevel
you can overwrite the feign loglevel to print the full requests + responses if needed- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withProxyConfig
public TwitchExtensionsBuilder withProxyConfig(com.github.twitch4j.common.config.ProxyConfig proxyConfig)Proxy Configuration- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-