Class InfinispanIndexingFailureHandler

java.lang.Object
org.infinispan.query.concurrent.InfinispanIndexingFailureHandler
All Implemented Interfaces:
FailureHandler

public class InfinispanIndexingFailureHandler extends Object implements FailureHandler
  • Constructor Details

    • InfinispanIndexingFailureHandler

      public InfinispanIndexingFailureHandler()
  • Method Details

    • handle

      public void handle(FailureContext context)
      Description copied from interface: FailureHandler
      Handle a generic failure.

      This method is expected to report the failure somewhere (logs, ...), then return as quickly as possible. Heavy error processing (sending emails, ...), if any, should be done asynchronously.

      Any error or exception thrown by this method will be caught by Hibernate Search and logged.

      Specified by:
      handle in interface FailureHandler
      Parameters:
      context - Contextual information about the failure (throwable, operation, ...)
    • handle

      public void handle(EntityIndexingFailureContext context)
      Description copied from interface: FailureHandler
      Handle the failure of entity indexing.

      This method is expected to report the failure somewhere (logs, ...), then return as quickly as possible. Heavy error processing (sending emails, ...), if any, should be done asynchronously.

      Any error or exception thrown by this method will be caught by Hibernate Search and logged.

      Specified by:
      handle in interface FailureHandler
      Parameters:
      context - Contextual information about the failure (throwable, operation, ...)
    • failureCounter

      public FailureCounter failureCounter()