com.sun.grizzly
Interface LinuxSpinningWorkaround

All Known Implementing Classes:
ReusableTCPSelectorHandler, ReusableUDPSelectorHandler, RoundRobinSelectorHandler, SelectorThreadHandler, SSLSelectorHandler, SSLSelectorThreadHandler, TCPSelectorHandler, UDPSelectorHandler

public interface LinuxSpinningWorkaround

Workaround for Linux spinning Selector.

Author:
Jeanfrancois Arcand

Method Summary
 int getSpinRate()
          Returns the Selector spinrate
 void resetSpinCounter()
          Resets the spincounter
 void workaroundSelectorSpin()
          Execute workaround for selector spin issue
 

Method Detail

resetSpinCounter

void resetSpinCounter()
Resets the spincounter


getSpinRate

int getSpinRate()
Returns the Selector spinrate

Returns:

workaroundSelectorSpin

void workaroundSelectorSpin()
                            throws IOException
Execute workaround for selector spin issue

Throws:
IOException


Copyright © 2012 Oracle Corporation. All Rights Reserved.