Skip to content

Commit

Permalink
test(csharp): add retry strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
algolia-bot and morganleroi committed Jan 29, 2024
1 parent 0c739ac commit 3759f4f
Show file tree
Hide file tree
Showing 45 changed files with 366 additions and 380 deletions.
4 changes: 4 additions & 0 deletions algoliasearch/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.compilerArgs += ['-Xlint:deprecation', '-Xlint:unchecked', '-Xlint:cast', '-Xlint:rawtypes']
}

javadoc {
options.encoding = 'UTF-8'
}
24 changes: 12 additions & 12 deletions algoliasearch/src/main/java/com/algolia/api/AbtestingClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -552,8 +552,8 @@ public ABTestResponse deleteABTest(@Nonnull Integer id) throws AlgoliaRuntimeExc
}

/**
* (asynchronously) Delete an A/B test. To determine the `id` for an A/B test, use the
* [`listABTests` operation](#tag/abtest/operation/listABTests).
* (asynchronously) Delete an A/B test. To determine the `id` for an A/B test, use the
* [`listABTests` operation](#tag/abtest/operation/listABTests).
*
* @param id Unique A/B test ID. (required)
* @param requestOptions The requestOptions to send along with the query, they will be merged with
Expand All @@ -570,8 +570,8 @@ public CompletableFuture<ABTestResponse> deleteABTestAsync(@Nonnull Integer id,
}

/**
* (asynchronously) Delete an A/B test. To determine the &#x60;id&#x60; for an A/B test, use the
* [&#x60;listABTests&#x60; operation](#tag/abtest/operation/listABTests).
* (asynchronously) Delete an A/B test. To determine the `id` for an A/B test, use the
* [`listABTests` operation](#tag/abtest/operation/listABTests).
*
* @param id Unique A/B test ID. (required)
* @throws AlgoliaRuntimeException If it fails to process the API call
Expand Down Expand Up @@ -605,8 +605,8 @@ public ABTest getABTest(@Nonnull Integer id) throws AlgoliaRuntimeException {
}

/**
* (asynchronously) Get specific details for an A/B test. To determine the &#x60;id&#x60; for an
* A/B test, use the [&#x60;listABTests&#x60; operation](#tag/abtest/operation/listABTests).
* (asynchronously) Get specific details for an A/B test. To determine the `id` for an A/B test,
* use the [`listABTests` operation](#tag/abtest/operation/listABTests).
*
* @param id Unique A/B test ID. (required)
* @param requestOptions The requestOptions to send along with the query, they will be merged with
Expand All @@ -622,8 +622,8 @@ public CompletableFuture<ABTest> getABTestAsync(@Nonnull Integer id, RequestOpti
}

/**
* (asynchronously) Get specific details for an A/B test. To determine the &#x60;id&#x60; for an
* A/B test, use the [&#x60;listABTests&#x60; operation](#tag/abtest/operation/listABTests).
* (asynchronously) Get specific details for an A/B test. To determine the `id` for an A/B test,
* use the [`listABTests` operation](#tag/abtest/operation/listABTests).
*
* @param id Unique A/B test ID. (required)
* @throws AlgoliaRuntimeException If it fails to process the API call
Expand Down Expand Up @@ -782,9 +782,9 @@ public ABTestResponse stopABTest(@Nonnull Integer id) throws AlgoliaRuntimeExcep
}

/**
* (asynchronously) If stopped, the test is over and can&#39;t be restarted. There is now only one
* (asynchronously) If stopped, the test is over and can't be restarted. There is now only one
* index, receiving 100% of all search requests. The data gathered for stopped A/B tests is
* retained. To determine the &#x60;id&#x60; for an A/B test, use the [&#x60;listABTests&#x60;
* retained. To determine the `id` for an A/B test, use the [`listABTests`
* operation](#tag/abtest/operation/listABTests).
*
* @param id Unique A/B test ID. (required)
Expand All @@ -802,9 +802,9 @@ public CompletableFuture<ABTestResponse> stopABTestAsync(@Nonnull Integer id, Re
}

/**
* (asynchronously) If stopped, the test is over and can&#39;t be restarted. There is now only one
* (asynchronously) If stopped, the test is over and can't be restarted. There is now only one
* index, receiving 100% of all search requests. The data gathered for stopped A/B tests is
* retained. To determine the &#x60;id&#x60; for an A/B test, use the [&#x60;listABTests&#x60;
* retained. To determine the `id` for an A/B test, use the [`listABTests`
* operation](#tag/abtest/operation/listABTests).
*
* @param id Unique A/B test ID. (required)
Expand Down
112 changes: 52 additions & 60 deletions algoliasearch/src/main/java/com/algolia/api/AnalyticsClient.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ public EventsResponse pushEvents(@Nonnull InsightsEvents insightsEvents) throws

/**
* (asynchronously) Send a list of events to the Insights API. You can include up to 1,000 events
* in a single request, but the request body must be smaller than 2&amp;nbsp;MB.
* in a single request, but the request body must be smaller than 2&nbsp;MB.
*
* @param insightsEvents (required)
* @param requestOptions The requestOptions to send along with the query, they will be merged with
Expand All @@ -578,7 +578,7 @@ public CompletableFuture<EventsResponse> pushEventsAsync(@Nonnull InsightsEvents

/**
* (asynchronously) Send a list of events to the Insights API. You can include up to 1,000 events
* in a single request, but the request body must be smaller than 2&amp;nbsp;MB.
* in a single request, but the request body must be smaller than 2&nbsp;MB.
*
* @param insightsEvents (required)
* @throws AlgoliaRuntimeException If it fails to process the API call
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -669,8 +669,8 @@ public InventoryResponse getInventory() throws AlgoliaRuntimeException {
/**
* (asynchronously) List the servers belonging to clusters. The response depends on whether you
* authenticate your API request: - With authentication, the response lists the servers assigned
* to your Algolia application&#39;s cluster. - Without authentication, the response lists the
* servers for all Algolia clusters.
* to your Algolia application's cluster. - Without authentication, the response lists the servers
* for all Algolia clusters.
*
* @param requestOptions The requestOptions to send along with the query, they will be merged with
* the transporter requestOptions.
Expand All @@ -685,8 +685,8 @@ public CompletableFuture<InventoryResponse> getInventoryAsync(RequestOptions req
/**
* (asynchronously) List the servers belonging to clusters. The response depends on whether you
* authenticate your API request: - With authentication, the response lists the servers assigned
* to your Algolia application&#39;s cluster. - Without authentication, the response lists the
* servers for all Algolia clusters.
* to your Algolia application's cluster. - Without authentication, the response lists the servers
* for all Algolia clusters.
*
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ public GetRecommendTaskResponse getRecommendStatus(@Nonnull String indexName, @N

/**
* (asynchronously) Some operations, such as deleting a Recommend rule, will respond with a
* &#x60;taskID&#x60; value. Use this value here to check the status of that task.
* `taskID` value. Use this value here to check the status of that task.
*
* @param indexName Index on which to perform the request. (required)
* @param model [Recommend
Expand Down Expand Up @@ -713,7 +713,7 @@ public CompletableFuture<GetRecommendTaskResponse> getRecommendStatusAsync(

/**
* (asynchronously) Some operations, such as deleting a Recommend rule, will respond with a
* &#x60;taskID&#x60; value. Use this value here to check the status of that task.
* `taskID` value. Use this value here to check the status of that task.
*
* @param indexName Index on which to perform the request. (required)
* @param model [Recommend
Expand Down
Loading

0 comments on commit 3759f4f

Please sign in to comment.