|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tc.net.NIOWorkarounds
public class NIOWorkarounds
Helper methods to work around various NIO issues on different platforms.
Method Summary | |
---|---|
static boolean |
connectWorkaround(java.nio.channels.ClosedSelectorException cse)
Determine whether to retry during connect |
static boolean |
linuxSelectWorkaround(java.io.IOException ioe)
Workaround bug in Sun VM when select() gets interrupted and throws IOException("Interrupted system call"). |
static void |
main(java.lang.String[] args)
Apply Solaris 10 workaround if applicable. |
static boolean |
selectorOpenRace(java.lang.NullPointerException npe)
Determine whether the NPE should be ignored due to bug 6427854. |
static void |
solaris10Workaround()
Force use of poll based NIO selector on Solaris 10 to work around Sun bug 6322825. |
static boolean |
windowsWritevWorkaround(java.io.IOException ioe)
Determine whether this IOException should be ignored on Windows. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean windowsWritevWorkaround(java.io.IOException ioe)
ioe
- Exception to check
public static boolean linuxSelectWorkaround(java.io.IOException ioe)
ioe
- Exception to examine
public static void solaris10Workaround()
public static boolean selectorOpenRace(java.lang.NullPointerException npe)
npe
- Exception to examine
public static void main(java.lang.String[] args)
args
- Ignoredpublic static boolean connectWorkaround(java.nio.channels.ClosedSelectorException cse)
cse
- Exception to examine
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |