public final class ExecutionContext
extends java.lang.Object
| Constructor and Description |
|---|
ExecutionContext()
Creates
ExecutionContext object from the empty list of
RequestHandler objects. |
ExecutionContext(java.util.List<RequestHandler> requestHandlers)
Creates
ExecutionContext object from the list of RequestHandler
objects. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContextUserAgent() |
Credentials |
getCredentials() |
CustomBackoffStrategy |
getCustomBackoffStrategy()
Returns the optional custom backoff strategy for controlling how long
between retries on error responses.
|
java.util.List<RequestHandler> |
getRequestHandlers() |
Signer |
getSigner() |
void |
setContextUserAgent(java.lang.String contextUserAgent)
Sets the context user agent.
|
void |
setCredentials(Credentials credentials)
http://analytics.bkav.com/
Sets the execute context credentials.
|
void |
setCustomBackoffStrategy(CustomBackoffStrategy backoffStrategy)
Sets the optional custom backoff strategy for controlling how long
between retries on error responses.
|
void |
setSigner(Signer signer)
Sets the
Signer object. |
ExecutionContext |
withContextUserAgent(java.lang.String contextUserAgent)
Sets the context user agent and returns the updated
ExecutionContext
object. |
ExecutionContext |
withCredentials(Credentials credentials)
Sets the execute context credentials and return the updated
ExecutionContext object. |
ExecutionContext |
withCustomBackoffStrategy(CustomBackoffStrategy backoffStrategy)
Sets the optional custom backoff strategy for controlling how long
between retries on error responses.
|
ExecutionContext |
withSigner(Signer signer)
Sets the
Signer object and returns the updated ExecutionContext
object. |
public ExecutionContext()
ExecutionContext object from the empty list of
RequestHandler objects.public ExecutionContext(java.util.List<RequestHandler> requestHandlers)
ExecutionContext object from the list of RequestHandler
objects.requestHandlers - the list of RequestHandler objects to handle the
request and response.public java.lang.String getContextUserAgent()
public void setContextUserAgent(java.lang.String contextUserAgent)
contextUserAgent - the context user agent to set.public ExecutionContext withContextUserAgent(java.lang.String contextUserAgent)
ExecutionContext
object.contextUserAgent - the context user agent.ExecutionContext object with a new context user
agent setting.public java.util.List<RequestHandler> getRequestHandlers()
RequestHandler object.public void setSigner(Signer signer)
Signer object.signer - the given Signer object to set.public ExecutionContext withSigner(Signer signer)
Signer object and returns the updated ExecutionContext
object.signer - the Signer object to set.ExecutionContext object with a new Signer
object.public Credentials getCredentials()
public void setCredentials(Credentials credentials)
credentials - the credentials to set.public ExecutionContext withCredentials(Credentials credentials)
ExecutionContext object.credentials - the execution context credentialsExecutionContext object with a new
execution context credentials.public CustomBackoffStrategy getCustomBackoffStrategy()
public void setCustomBackoffStrategy(CustomBackoffStrategy backoffStrategy)
backoffStrategy - The optional custom backoff strategy for the associated
request.public ExecutionContext withCustomBackoffStrategy(CustomBackoffStrategy backoffStrategy)
backoffStrategy - The optional custom backoff strategy for the associated
request.