public class DefaultFailureHandler extends Object implements FailureHandler
IndexFailureService.
Only indexing failures supported.| Constructor and Description |
|---|
DefaultFailureHandler(IndexFailureService indexFailureService) |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(FailureBatch failureBatch)
Handles a batch of failures
|
boolean |
isEnabled()
Guides the master failure handling service, when deciding
whether this handler is available for processing.
|
boolean |
supports(FailureBatch failureBatch)
Guides the master failure handling service, when deciding
whether this handler is suitable for a certain batch of failures
|
@Inject public DefaultFailureHandler(IndexFailureService indexFailureService)
public void handle(FailureBatch failureBatch)
FailureHandlerhandle in interface FailureHandlerfailureBatch - a batch of failures, supported by this handlerpublic boolean supports(FailureBatch failureBatch)
FailureHandlersupports in interface FailureHandlerfailureBatch - a batch of failures to testpublic boolean isEnabled()
FailureHandlerisEnabled in interface FailureHandlerCopyright © 2012–2021 Graylog, Inc.. All rights reserved.