com.sun.jini.jeri.internal.runtime
Class SelectionManager.SelectLoop
java.lang.Object
com.sun.jini.jeri.internal.runtime.SelectionManager.SelectLoop
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- SelectionManager
private class SelectionManager.SelectLoop
- extends Object
- implements Runnable
SelectLoop provides the main loop for each I/O processing thread.
Method Summary |
void |
run()
|
private void |
throttleLoopOnException()
Throttles the select loop after an exception has been
caught: if a burst of 10 exceptions in 5 seconds occurs,
then wait for 10 seconds to curb busy CPU usage. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lastExceptionTime
private long lastExceptionTime
recentExceptionCount
private int recentExceptionCount
SelectionManager.SelectLoop
private SelectionManager.SelectLoop()
run
public void run()
- Specified by:
run
in interface Runnable
throttleLoopOnException
private void throttleLoopOnException()
- Throttles the select loop after an exception has been
caught: if a burst of 10 exceptions in 5 seconds occurs,
then wait for 10 seconds to curb busy CPU usage.
Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.