public class DefaultConnectionConfig extends java.lang.Object implements IConnectionConfig
| Constructor and Description |
|---|
DefaultConnectionConfig() |
| 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
|
public int getConnectTimeout()
getConnectTimeout in interface IConnectionConfigpublic void setConnectTimeout(int connectTimeoutValue)
setConnectTimeout in interface IConnectionConfigconnectTimeoutValue - Connect timeout in milliseconds to be set to.public int getReadTimeout()
getReadTimeout in interface IConnectionConfigpublic void setReadTimeout(int readTimeoutValue)
setReadTimeout in interface IConnectionConfigreadTimeoutValue - Read timeout in milliseconds to be set to.public void setMaxRedirects(int maxRedirects)
setMaxRedirects in interface IConnectionConfigmaxRedirects - Max redirects that a request can takepublic int getMaxRedirects()
getMaxRedirects in interface IConnectionConfigpublic void setShouldRedirect(com.microsoft.graph.httpcore.middlewareoption.IShouldRedirect shouldRedirect)
setShouldRedirect in interface IConnectionConfigshouldRedirect - Callback called before doing a redirectpublic com.microsoft.graph.httpcore.middlewareoption.IShouldRedirect getShouldRedirect()
getShouldRedirect in interface IConnectionConfigpublic void setShouldRetry(com.microsoft.graph.httpcore.middlewareoption.IShouldRetry shouldretry)
setShouldRetry in interface IConnectionConfigshouldretry - The callback called before retrypublic com.microsoft.graph.httpcore.middlewareoption.IShouldRetry getShouldRetry()
getShouldRetry in interface IConnectionConfigpublic void setMaxRetries(int maxRetries)
setMaxRetries in interface IConnectionConfigmaxRetries - Max retries for a requestpublic int getMaxRetries()
getMaxRetries in interface IConnectionConfigpublic void setDelay(long delay)
setDelay in interface IConnectionConfigdelay - Delay in seconds between retriespublic long getDelay()
getDelay in interface IConnectionConfig