public interface IConnectionConfig
| Modifier and Type | Method and Description |
|---|---|
int |
getConnectTimeout()
Gets the connect timeout
|
long |
getDelay()
Gets delay between retries
|
int |
getMaxRedirects()
Gets the max redirects
|
int |
getMaxRetries()
Gets max retries
|
int |
getReadTimeout()
Gets the read timeout
|
com.microsoft.graph.httpcore.middlewareoption.IShouldRedirect |
getShouldRedirect()
Gets the should redirect callback
|
com.microsoft.graph.httpcore.middlewareoption.IShouldRetry |
getShouldRetry()
Gets the should retry callback
|
void |
setConnectTimeout(int connectTimeoutValue)
Sets the connect timeout
|
void |
setDelay(long delay)
Sets the delay in seconds between retires
|
void |
setMaxRedirects(int maxRedirects)
Sets the max redirects
|
void |
setMaxRetries(int maxRetries)
Sets the max retries
|
void |
setReadTimeout(int readTimeoutValue)
Sets the connect timeout
|
void |
setShouldRedirect(com.microsoft.graph.httpcore.middlewareoption.IShouldRedirect shouldRedirect)
Sets the should redirect callback
|
void |
setShouldRetry(com.microsoft.graph.httpcore.middlewareoption.IShouldRetry shouldretry)
Sets the should retry callback
|
int getConnectTimeout()
void setConnectTimeout(int connectTimeoutValue)
connectTimeoutValue - Connect timeout in milliseconds to be set to.int getReadTimeout()
void setReadTimeout(int readTimeoutValue)
readTimeoutValue - Read timeout in milliseconds to be set to.void setMaxRedirects(int maxRedirects)
maxRedirects - Max redirects that a request can takeint getMaxRedirects()
void setShouldRedirect(com.microsoft.graph.httpcore.middlewareoption.IShouldRedirect shouldRedirect)
shouldRedirect - Callback called before doing a redirectcom.microsoft.graph.httpcore.middlewareoption.IShouldRedirect getShouldRedirect()
void setShouldRetry(com.microsoft.graph.httpcore.middlewareoption.IShouldRetry shouldretry)
shouldretry - The callback called before retrycom.microsoft.graph.httpcore.middlewareoption.IShouldRetry getShouldRetry()
void setMaxRetries(int maxRetries)
maxRetries - Max retries for a requestint getMaxRetries()
void setDelay(long delay)
delay - Delay in seconds between retrieslong getDelay()