|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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();
}
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |