public interface FailureHandler
Multibinder:
Multibinder<FailureHandler> failureHandlerBinder = Multibinder.newSetBinder(binder(), FailureHandler.class);
failureHandlerBinder.addBinding().to(MyCustomFailureHandler.class);
| 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
|
void handle(FailureBatch failureBatch)
failureBatch - a batch of failures, supported by this handlerboolean supports(FailureBatch failureBatch)
failureBatch - a batch of failures to testboolean isEnabled()
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.