public class SerialSelector extends AbstractSelector
| Modifier and Type | Method and Description |
|---|---|
protected void |
implCloseSelector() |
Set<SelectionKey> |
keys() |
static SerialSelector |
open() |
protected SelectionKey |
register(AbstractSelectableChannel ch,
int ops,
Object att) |
int |
select() |
int |
select(long timeout) |
Set<SelectionKey> |
selectedKeys() |
int |
selectNow() |
String |
toString() |
Selector |
wakeup() |
begin, cancelledKeys, close, deregister, end, isOpen, providerpublic static SerialSelector open() throws IOException
IOExceptionprotected void implCloseSelector()
throws IOException
implCloseSelector in class AbstractSelectorIOExceptionprotected SelectionKey register(AbstractSelectableChannel ch, int ops, Object att)
register in class AbstractSelectorpublic Set<SelectionKey> keys()
public Set<SelectionKey> selectedKeys()
selectedKeys in class Selectorpublic int selectNow()
throws IOException
selectNow in class SelectorIOExceptionpublic int select(long timeout)
throws IOException
select in class SelectorIOExceptionpublic int select()
throws IOException
select in class SelectorIOExceptionCopyright © 2015. All rights reserved.