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.Selector
delegate
private SelectedSelectionKeySet
selectionKeys
-
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 void
close()
boolean
isOpen()
java.util.Set<java.nio.channels.SelectionKey>
keys()
java.nio.channels.spi.SelectorProvider
provider()
int
select()
int
select(long timeout)
java.util.Set<java.nio.channels.SelectionKey>
selectedKeys()
int
selectNow()
java.nio.channels.Selector
wakeup()
-
-
-
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:
isOpen
in classjava.nio.channels.Selector
-
provider
public java.nio.channels.spi.SelectorProvider provider()
- Specified by:
provider
in classjava.nio.channels.Selector
-
keys
public java.util.Set<java.nio.channels.SelectionKey> keys()
- Specified by:
keys
in classjava.nio.channels.Selector
-
selectedKeys
public java.util.Set<java.nio.channels.SelectionKey> selectedKeys()
- Specified by:
selectedKeys
in classjava.nio.channels.Selector
-
selectNow
public int selectNow() throws java.io.IOException
- Specified by:
selectNow
in classjava.nio.channels.Selector
- Throws:
java.io.IOException
-
select
public int select(long timeout) throws java.io.IOException
- Specified by:
select
in classjava.nio.channels.Selector
- Throws:
java.io.IOException
-
select
public int select() throws java.io.IOException
- Specified by:
select
in classjava.nio.channels.Selector
- Throws:
java.io.IOException
-
wakeup
public java.nio.channels.Selector wakeup()
- Specified by:
wakeup
in classjava.nio.channels.Selector
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in classjava.nio.channels.Selector
- Throws:
java.io.IOException
-
-