Package com.im.commons.util
Class EDTChecker
- java.lang.Object
-
- com.im.commons.util.EDTChecker
-
public final class EDTChecker extends java.lang.Object
Utility to check whether the current operation is outside EDT.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkNotInEDT()
Checks whether the current operation is performed in the Event Dispatch Thread and logs a warning if yes.static EDTChecker
getDefault()
-
-
-
Method Detail
-
getDefault
public static EDTChecker getDefault()
-
checkNotInEDT
public void checkNotInEDT()
Checks whether the current operation is performed in the Event Dispatch Thread and logs a warning if yes. The warnings are grouped by the stack trace and they are not reissued more often than once in ten minutes.
-
-