Package org.jitsi.utils.queue
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.
Boris Grozev
-
-
Constructor Summary
Constructors Constructor Description CountingErrorHandler()
-
Method Summary
Modifier and Type Method Description voidpacketDropped()Called when a packet is dropped from the queue because a new packet was added while it was full. voidpacketHandlingFailed(Throwable t)Called when handling of a packet produces an exception. longgetNumPacketsDropped()Get the number of dropped packets. longgetNumExceptions()Get the number of exceptions. -
-
Method Detail
-
packetDropped
void packetDropped()
Called when a packet is dropped from the queue because a new packet was added while it was full.
-
packetHandlingFailed
void packetHandlingFailed(Throwable t)
Called when handling of a packet produces an exception.
-
getNumPacketsDropped
long getNumPacketsDropped()
Get the number of dropped packets.
-
getNumExceptions
long getNumExceptions()
Get the number of exceptions.
-
-
-
-