Class ExecutionInfos.DataApiExecutionInfoBuilder
java.lang.Object
com.datastax.astra.internal.command.ExecutionInfos.DataApiExecutionInfoBuilder
- Enclosing class:
ExecutionInfos
Builder class for execution information
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Invoke constructor with the builder.longExecute the command and populate the response.voidwithApiResponse(DataAPIResponse response) Populate after http call.withCommand(Command command) Populate after http call.withCommandOptions(BaseOptions<?> baseOptions) Populate after http call.voidwithHttpResponse(ApiResponseHttp httpResponse) Populate after http call.withOverrideCommandOptions(BaseOptions<?> baseOptions) Populate after http call.withRequestHeaders(Map<String, List<String>> headers) Populate after http call.withRequestUrl(String url) Populate after http call.withSerializer(DataAPISerializer serializer) Populate after http call.
-
Constructor Details
-
DataApiExecutionInfoBuilder
public DataApiExecutionInfoBuilder()Default constructor.
-
-
Method Details
-
withCommand
Populate after http call.- Parameters:
command- current command- Returns:
- current reference
-
withCommandOptions
Populate after http call.- Parameters:
baseOptions- current command options- Returns:
- current reference
-
withOverrideCommandOptions
public ExecutionInfos.DataApiExecutionInfoBuilder withOverrideCommandOptions(BaseOptions<?> baseOptions) Populate after http call.- Parameters:
baseOptions- special commands- Returns:
- current reference
-
withSerializer
Populate after http call.- Parameters:
serializer- current serializer- Returns:
- current reference
-
withRequestUrl
Populate after http call.- Parameters:
url- target url- Returns:
- current reference
-
withRequestHeaders
public ExecutionInfos.DataApiExecutionInfoBuilder withRequestHeaders(Map<String, List<String>> headers) Populate after http call.- Parameters:
headers- request headers- Returns:
- current reference
-
withApiResponse
Populate after http call.- Parameters:
response- current response
-
withHttpResponse
Populate after http call.- Parameters:
httpResponse- http response
-
build
Invoke constructor with the builder.- Returns:
- immutable instance of execution infos.
-
getExecutionTime
public long getExecutionTime()Execute the command and populate the response.- Returns:
- the response
-