public static final class SocketInternetObservingStrategy.Builder
extends java.lang.Object
SocketInternetObservingStrategy.| Modifier and Type | Method and Description |
|---|---|
SocketInternetObservingStrategy |
build()
Create an immutable instance of
SocketInternetObservingStrategy using
configured values. |
B |
delay(long delay)
Set the delay for the strategy used in Observable.interval(long, long, java.util.concurrent.TimeUnit).
|
B |
endpoint(java.lang.String endpoint)
Set the endpoint for the strategy.
|
B |
interval(long interval)
Set the interval for the strategy used in Observable.interval(long, long, java.util.concurrent.TimeUnit).
|
SocketInternetObservingStrategy.Builder |
port(int port)
Set the port for the strategy.
|
B |
timeout(int timeout)
Set the timeout for the strategy.
|
@NonNull public SocketInternetObservingStrategy.Builder port(int port)
@NonNull public SocketInternetObservingStrategy build()
SocketInternetObservingStrategy using
configured values.@NonNull public B timeout(int timeout)
@NonNull
public B endpoint(@NonNull
java.lang.String endpoint)
@NonNull public B delay(long delay)
@NonNull public B interval(long interval)