Class CountingErrorHandler

  • All Implemented Interfaces:
    org.jitsi.utils.queue.ErrorHandler

    
    public class CountingErrorHandler
     implements ErrorHandler
                        

    An ErrorHandler implementation which counts the number of dropped packets and exceptions.

    Author:

    Boris Grozev

    • 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
      void packetDropped() Called when a packet is dropped from the queue because a new packet was added while it was full.
      void packetHandlingFailed(Throwable t) Called when handling of a packet produces an exception.
      long getNumPacketsDropped() Get the number of dropped packets.
      long getNumExceptions() Get the number of exceptions.
      • Methods inherited from class java.lang.Object

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

      • CountingErrorHandler

        CountingErrorHandler()
    • Method Detail

      • packetDropped

         void packetDropped()

        Called when a packet is dropped from the queue because a new packet was added while it was full.