-
public final class RemoteServiceModule.Provider extends OriginModule.Provider<RemoteServiceModule>
Remote network service module provider.
-
-
Method Summary
Modifier and Type Method Description RemoteServiceModule.ProviderconnectTimeout(long timeout, TimeUnit unit)Set maximum time to wait for connection to establish before failing. RemoteServiceModule.ProviderreadTimeout(long timeout, TimeUnit unit)Set maximum time to wait for connection to become readable before failing. RemoteServiceModule.ProviderpostRetryDelay(long delay, TimeUnit unit)Set maximum time to wait before retrying failed posts due to network connectivity issues. RemoteServiceModule.ProviderexchangeBatchSize(int size)Set maximum number of requests to poll and send at any given point in time. RemoteServiceModule.ProviderrootServiceHost(@Nullable() String host)Set host of root service. -
-
Method Detail
-
connectTimeout
RemoteServiceModule.Provider connectTimeout(long timeout, TimeUnit unit)
Set maximum time to wait for connection to establish before failing.
If
{@code timeout}, converted to milliseconds,is{@code 0}, default timeout will be used instead.- Parameters:
timeout- maximum time to waitunit- unit{@code timeout}is measured in
-
readTimeout
RemoteServiceModule.Provider readTimeout(long timeout, TimeUnit unit)
Set maximum time to wait for connection to become readable before failing.
If
{@code timeout}, converted to milliseconds,is{@code 0}, default timeout will be used instead.- Parameters:
timeout- maximum time to waitunit- unit{@code timeout}is measured in
-
postRetryDelay
RemoteServiceModule.Provider postRetryDelay(long delay, TimeUnit unit)
Set maximum time to wait before retrying failed posts due to network connectivity issues.
If
{@code delay}, converted to milliseconds,is{@code 0}, default delay will be used instead.- Parameters:
delay- maximum time to waitunit- unit{@code timeout}is measured in
-
exchangeBatchSize
RemoteServiceModule.Provider exchangeBatchSize(int size)
Set maximum number of requests to poll and send at any given point in time.
If
{@code size}is{@code 0}, default batch size will be used instead.- Parameters:
size- maximum number of requests to batch
-
rootServiceHost
RemoteServiceModule.Provider rootServiceHost(@Nullable() String host)
Set host of root service.
- Parameters:
host- root service host or{@code null}for default
-
-
-
-