org.glassfish.grizzly.nio.tmpselectors
Class TemporarySelectorPool
java.lang.Object
org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorPool
public class TemporarySelectorPool
- extends java.lang.Object
- Author:
- oleksiys
|
Method Summary |
void |
close()
|
void |
offer(java.nio.channels.Selector selector)
|
java.nio.channels.Selector |
poll()
|
void |
setSize(int size)
|
int |
size()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_SELECTORS_COUNT
public static final int DEFAULT_SELECTORS_COUNT
- See Also:
- Constant Field Values
TemporarySelectorPool
public TemporarySelectorPool()
TemporarySelectorPool
public TemporarySelectorPool(int selectorsCount)
size
public int size()
setSize
public void setSize(int size)
throws java.io.IOException
- Throws:
java.io.IOException
poll
public java.nio.channels.Selector poll()
throws java.io.IOException
- Throws:
java.io.IOException
offer
public void offer(java.nio.channels.Selector selector)
close
public void close()
Copyright © 2011 Oracle Corpration. All Rights Reserved.