Class PojoMassIndexingDelegatingFailureHandler

    • Constructor Detail

      • PojoMassIndexingDelegatingFailureHandler

        public PojoMassIndexingDelegatingFailureHandler​(FailureHandler delegate)
    • Method Detail

      • 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