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 IConnectionConfig
public void setConnectTimeout(int connectTimeoutValue)
setConnectTimeout
in interface IConnectionConfig
connectTimeoutValue
- Connect timeout in milliseconds to be set to.public int getReadTimeout()
getReadTimeout
in interface IConnectionConfig
public void setReadTimeout(int readTimeoutValue)
setReadTimeout
in interface IConnectionConfig
readTimeoutValue
- Read timeout in milliseconds to be set to.public void setMaxRedirects(int maxRedirects)
setMaxRedirects
in interface IConnectionConfig
maxRedirects
- Max redirects that a request can takepublic int getMaxRedirects()
getMaxRedirects
in interface IConnectionConfig
public void setShouldRedirect(com.microsoft.graph.httpcore.middlewareoption.IShouldRedirect shouldRedirect)
setShouldRedirect
in interface IConnectionConfig
shouldRedirect
- Callback called before doing a redirectpublic com.microsoft.graph.httpcore.middlewareoption.IShouldRedirect getShouldRedirect()
getShouldRedirect
in interface IConnectionConfig
public void setShouldRetry(com.microsoft.graph.httpcore.middlewareoption.IShouldRetry shouldretry)
setShouldRetry
in interface IConnectionConfig
shouldretry
- The callback called before retrypublic com.microsoft.graph.httpcore.middlewareoption.IShouldRetry getShouldRetry()
getShouldRetry
in interface IConnectionConfig
public void setMaxRetries(int maxRetries)
setMaxRetries
in interface IConnectionConfig
maxRetries
- Max retries for a requestpublic int getMaxRetries()
getMaxRetries
in interface IConnectionConfig
public void setDelay(long delay)
setDelay
in interface IConnectionConfig
delay
- Delay in seconds between retriespublic long getDelay()
getDelay
in interface IConnectionConfig