org.apache.mina.filter.traffic
Interface IoFloodException

All Known Implementing Classes:
ReadFloodException, WriteFloodException

public interface IoFloodException

A tagging interface for identifying ReadFloodException and WriteFloodException; It's not really an exception.

This interface is useful when you want to do something if either reader or writer side is flooded:


 if (exception instanceof IoFloodException) {
     session.close();
 }
 
which is a way simpler than:

 if (exception instanceof ReadFloodException ||
     exception instanceof WriteFloodException) {
     
     session.close();
 }
 

Version:
$Rev: 591600 $, $Date: 2007-11-03 12:32:13 +0100 (Sat, 03 Nov 2007) $
Author:
The Apache MINA Project (dev@mina.apache.org)



Copyright © 2004-2009 Apache MINA Project. All Rights Reserved.