public class ClientRequestProperties extends Object implements Serializable, TraceableAttributes
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
KUSTO_TIMESPAN_REGEX |
static String |
OPTION_CLIENT_MAX_REDIRECT_COUNT |
static String |
OPTION_NO_REQUEST_TIMEOUT |
static String |
OPTION_SERVER_TIMEOUT |
| Constructor and Description |
|---|
ClientRequestProperties() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearOptions() |
void |
clearParameters() |
static ClientRequestProperties |
fromString(String json) |
String |
getApplication()
Gets the application name for tracing purposes.
|
String |
getClientRequestId() |
Object |
getOption(String name) |
Object |
getParameter(String name) |
int |
getRedirectCount() |
Long |
getTimeoutInMilliSec()
Gets the amount of time a query may execute on the service before it times out.
|
Map<String,String> |
getTracingAttributes() |
String |
getUser()
Gets the application version for tracing purposes.
|
void |
removeOption(String name) |
void |
removeParameter(String name) |
void |
setApplication(String application)
Sets the application name for tracing purposes.
|
void |
setClientRequestId(String clientRequestId) |
void |
setOption(String name,
Object value) |
void |
setParameter(String name,
boolean value) |
void |
setParameter(String name,
Date value) |
void |
setParameter(String name,
double value) |
void |
setParameter(String name,
Duration value) |
void |
setParameter(String name,
int value) |
void |
setParameter(String name,
LocalDateTime value) |
void |
setParameter(String name,
long value) |
void |
setParameter(String name,
Object value) |
void |
setParameter(String name,
String value) |
void |
setParameter(String name,
UUID value) |
void |
setTimeoutInMilliSec(Long timeoutInMs)
Sets the amount of time a query may execute on the service before it times out.
|
void |
setUser(String user)
Sets the application username for tracing purposes.
|
String |
toString() |
public static final String OPTION_SERVER_TIMEOUT
public static final String OPTION_NO_REQUEST_TIMEOUT
public static final String OPTION_CLIENT_MAX_REDIRECT_COUNT
public static final Pattern KUSTO_TIMESPAN_REGEX
public int getRedirectCount()
public void removeOption(String name)
public void clearOptions()
public void setParameter(String name, LocalDateTime value)
public void setParameter(String name, boolean value)
public void setParameter(String name, int value)
public void setParameter(String name, long value)
public void setParameter(String name, double value)
public void removeParameter(String name)
public void clearParameters()
public Long getTimeoutInMilliSec()
public void setTimeoutInMilliSec(Long timeoutInMs)
timeoutInMs - number of milliseconds before timeout.
Value must be between 1 minute and 1 hour, and so value below the minimum or above the maximum will be adjusted accordingly.public static ClientRequestProperties fromString(String json) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic String getClientRequestId()
public void setClientRequestId(String clientRequestId)
public String getApplication()
public void setApplication(String application)
application - The application name.public String getUser()
public void setUser(String user)
user - The application username.public Map<String,String> getTracingAttributes()
getTracingAttributes in interface TraceableAttributesCopyright © 2025. All rights reserved.