Class WebSeedClientConfiguration
- java.lang.Object
-
- io.github.pr0methean.betterrandom.seed.WebSeedClientConfiguration
-
- All Implemented Interfaces:
Serializable
public class WebSeedClientConfiguration extends Object implements Serializable
Common configuration parameters for an instance ofWebSeedClient. This class makes it possible to add more parameters in the future without needing new constructor overloads inWebSeedClientand all its subclasses.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebSeedClientConfiguration.Builder
-
Field Summary
Fields Modifier and Type Field Description static WebSeedClientConfigurationDEFAULTDefault configuration.
-
Constructor Summary
Constructors Modifier Constructor Description protectedWebSeedClientConfiguration(Proxy proxy, SSLSocketFactory socketFactory, long retryDelayMs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)ProxygetProxy()longgetRetryDelayMs()SSLSocketFactorygetSocketFactory()inthashCode()
-
-
-
Field Detail
-
DEFAULT
public static final WebSeedClientConfiguration DEFAULT
Default configuration.
-
-
Constructor Detail
-
WebSeedClientConfiguration
protected WebSeedClientConfiguration(@Nullable Proxy proxy, @Nullable SSLSocketFactory socketFactory, long retryDelayMs)
- Parameters:
proxy- the proxy to use with this server, or null to use the JVM defaultsocketFactory- the socket factory, or null for the JVM defaultretryDelayMs- time to wait before trying again after an IOException
-
-
Method Detail
-
getSocketFactory
@Nullable public SSLSocketFactory getSocketFactory()
-
getRetryDelayMs
public long getRetryDelayMs()
-
-