Class IncompleteLogFinalizer

  • All Implemented Interfaces:

    
    public final class IncompleteLogFinalizer
    
                        

    Utility class responsible for finalizing or abandoning incomplete logger sessions based on specified criteria. Users can utilize this class to handle incomplete logger sessions triggered by appCloseEvent instances. It integrates with the IncidentDetectionComponent, to get the latest [exit reason of the app

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit finalise(String message, String exitData, Integer reason, Long timestamp) Finalizes or abandons incomplete logger sessions based on specified parameters.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IncompleteLogFinalizer

        IncompleteLogFinalizer(Long threshold)
    • Method Detail

      • finalise

         final Unit finalise(String message, String exitData, Integer reason, Long timestamp)

        Finalizes or abandons incomplete logger sessions based on specified parameters. Triggered by appCloseEvent instances, this method processes incomplete logs, appending relevant information, and decides to either finish or abandon the logs.

        Parameters:
        message - The message of the exit event.
        exitData - The exit data or additional information associated with the finalization.
        reason - An integer indicating the exit reason.
        timestamp - The timestamp of the exit reason.