Class PojoMassIndexingFailSafeFailureHandlerWrapper

java.lang.Object
org.hibernate.search.mapper.pojo.massindexing.impl.PojoMassIndexingFailSafeFailureHandlerWrapper
All Implemented Interfaces:
MassIndexingFailureHandler

public class PojoMassIndexingFailSafeFailureHandlerWrapper extends Object implements MassIndexingFailureHandler
  • Constructor Details

    • PojoMassIndexingFailSafeFailureHandlerWrapper

      public PojoMassIndexingFailSafeFailureHandlerWrapper(MassIndexingFailureHandler delegate)
  • Method Details

    • handle

      public void handle(MassIndexingFailureContext context)
      Description copied from interface: MassIndexingFailureHandler
      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 MassIndexingFailureHandler
      Parameters:
      context - Contextual information about the failure (throwable, operation, ...)
    • handle

      public void handle(MassIndexingEntityFailureContext context)
      Description copied from interface: MassIndexingFailureHandler
      Handle a failure when indexing an entity.

      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 MassIndexingFailureHandler
      Parameters:
      context - Contextual information about the failure (throwable, operation, ...)
    • failureFloodingThreshold

      public long failureFloodingThreshold()
      Description copied from interface: MassIndexingFailureHandler
      Returns the number of failures during one mass indexing beyond which the failure handler will no longer be notified. This threshold is reached separately for each indexed type.

      May be overridden by mass indexer parameters (see failureFloodingThreshold(long) in the MassIndexer interface).

      Specified by:
      failureFloodingThreshold in interface MassIndexingFailureHandler