T
- Type of the document in the action.public final class OnActionErrorOptions<T> extends Object
SearchClientBuilder.SearchIndexingBufferedSenderBuilder#onActionError(Consumer)
is
called.Constructor and Description |
---|
OnActionErrorOptions(IndexAction<T> action)
Creates a new OnActionErrorOptions object.
|
Modifier and Type | Method and Description |
---|---|
IndexAction<T> |
getAction()
Gets the action.
|
IndexingResult |
getIndexingResult()
Gets the indexing result of the action.
|
Throwable |
getThrowable()
Gets the throwable that caused the action to fail.
|
OnActionErrorOptions<T> |
setIndexingResult(IndexingResult indexingResult)
Sets the indexing result of the action with a non-retryable status code.
|
OnActionErrorOptions<T> |
setThrowable(Throwable throwable)
Sets the throwable that caused the action failed.
|
public OnActionErrorOptions(IndexAction<T> action)
action
- Action that failed with an error.public IndexAction<T> getAction()
public OnActionErrorOptions<T> setThrowable(Throwable throwable)
throwable
- Throwable that caused the action to fail.public Throwable getThrowable()
public OnActionErrorOptions<T> setIndexingResult(IndexingResult indexingResult)
indexingResult
- The indexing result for the action.public IndexingResult getIndexingResult()
Copyright © 2021 Microsoft Corporation. All rights reserved.