com.sun.jini.jeri.internal.runtime
Class SelectionManager.SelectLoop

java.lang.Object
  extended by 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.


Field Summary
private  long lastExceptionTime
           
private  int recentExceptionCount
           
 
Constructor Summary
private SelectionManager.SelectLoop()
           
 
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
 

Field Detail

lastExceptionTime

private long lastExceptionTime

recentExceptionCount

private int recentExceptionCount
Constructor Detail

SelectionManager.SelectLoop

private SelectionManager.SelectLoop()
Method Detail

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.