public static class ExecutionContext.Builder extends Object
| Constructor and Description |
|---|
Builder() |
public static ExecutionContext.Builder from(ExecutionContext ec)
ExecutionContext data.
This allows to update one or more settings.ec - instance to be copied; If null blank fields will be
used as starting pointpublic ExecutionContext.Builder setApplicationData(ExecutionContext.ApplicationData applicationData)
applicationData - can be nullpublic ExecutionContext.Builder mergeApplicationData(String key, String value)
ExecutionContext.ApplicationData. If ExecutionContext.ApplicationData is null new
instance will be created. If the key exists it will be replaced.
Thread-safety: This method is not thread-safe.
key - data keyvalue - data valueExecutionContext.Builder instancepublic ExecutionContext.Builder mergeApplicationData(Map<String,String> data)
ExecutionContext.ApplicationData. If ExecutionContext.ApplicationData is
null new instance will be created. Existing keys will be replaced (or values for
existing keys)
Thread-safety: This method is not thread-safe.
data - valuesExecutionContext.Builder instancepublic ExecutionContext.Builder setSecurityContext(ExecutionContext.SecurityContext securityContext)
securityContext - can be nullpublic ExecutionContext.Builder setReadTimeout(Integer readTimeout)
For the HTTP 1.1 transport protocol this value maps to the
SO_TIMEOUT.
If not null, this property overrides the one read from
HttpConfiguration.getSoTimeout().
The default value is null.
A value of zero is interpreted as an infinite timeout, null
is interpreted as unspecified at this level (concrete invocation) and
client-level configuration applies.
readTimeout - non-negative value or nullpublic ExecutionContext.Builder setResponseAccessor(HttpResponseAccessor responseAccessor)
HttpResponseAccessor instance which can access and
capture information from the raw REST response.
This accessor is only applicable for requests executed from a client that uses REST transport.
responseAccessor - which will be provided with the raw REST
responsepublic ExecutionContext.Builder setRuntimeKeyValue(String key, Object value)
ExecutionContext.RuntimeData. The value can be accessed
throughout the invocation by calling RuntimeData#getValue(key). Existing keys
will be replaced.
This key-value entry will not be serialized on the wire.
Thread-safety: This method is not thread-safe.
key - the entry keyvalue - the entry valuepublic ExecutionContext build()
Copyright © 2023. All rights reserved.