Package io.netty.channel.nio
Class SelectedSelectionKeySetSelector
- java.lang.Object
-
- java.nio.channels.Selector
-
- io.netty.channel.nio.SelectedSelectionKeySetSelector
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
final class SelectedSelectionKeySetSelector extends java.nio.channels.Selector
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.channels.Selectordelegateprivate SelectedSelectionKeySetselectionKeys
-
Constructor Summary
Constructors Constructor Description SelectedSelectionKeySetSelector(java.nio.channels.Selector delegate, SelectedSelectionKeySet selectionKeys)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanisOpen()java.util.Set<java.nio.channels.SelectionKey>keys()java.nio.channels.spi.SelectorProviderprovider()intselect()intselect(long timeout)java.util.Set<java.nio.channels.SelectionKey>selectedKeys()intselectNow()java.nio.channels.Selectorwakeup()
-
-
-
Field Detail
-
selectionKeys
private final SelectedSelectionKeySet selectionKeys
-
delegate
private final java.nio.channels.Selector delegate
-
-
Constructor Detail
-
SelectedSelectionKeySetSelector
SelectedSelectionKeySetSelector(java.nio.channels.Selector delegate, SelectedSelectionKeySet selectionKeys)
-
-
Method Detail
-
isOpen
public boolean isOpen()
- Specified by:
isOpenin classjava.nio.channels.Selector
-
provider
public java.nio.channels.spi.SelectorProvider provider()
- Specified by:
providerin classjava.nio.channels.Selector
-
keys
public java.util.Set<java.nio.channels.SelectionKey> keys()
- Specified by:
keysin classjava.nio.channels.Selector
-
selectedKeys
public java.util.Set<java.nio.channels.SelectionKey> selectedKeys()
- Specified by:
selectedKeysin classjava.nio.channels.Selector
-
selectNow
public int selectNow() throws java.io.IOException- Specified by:
selectNowin classjava.nio.channels.Selector- Throws:
java.io.IOException
-
select
public int select(long timeout) throws java.io.IOException- Specified by:
selectin classjava.nio.channels.Selector- Throws:
java.io.IOException
-
select
public int select() throws java.io.IOException- Specified by:
selectin classjava.nio.channels.Selector- Throws:
java.io.IOException
-
wakeup
public java.nio.channels.Selector wakeup()
- Specified by:
wakeupin classjava.nio.channels.Selector
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein classjava.nio.channels.Selector- Throws:
java.io.IOException
-
-