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 inWebSeedClient
and all its subclasses.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WebSeedClientConfiguration.Builder
-
Field Summary
Fields Modifier and Type Field Description static WebSeedClientConfiguration
DEFAULT
Default configuration.
-
Constructor Summary
Constructors Modifier Constructor Description protected
WebSeedClientConfiguration(Proxy proxy, SSLSocketFactory socketFactory, long retryDelayMs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Proxy
getProxy()
long
getRetryDelayMs()
SSLSocketFactory
getSocketFactory()
int
hashCode()
-
-
-
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()
-
-