public class VanillaSelector extends Object implements Closeable
| Constructor and Description |
|---|
VanillaSelector() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
VanillaSelector |
deregister(AbstractSelectableChannel channel,
int ops) |
VanillaSelector |
open() |
VanillaSelector |
register(AbstractSelectableChannel channel,
int ops) |
VanillaSelector |
register(AbstractSelectableChannel channel,
int ops,
Object obj) |
int |
select(int spinLoopCount,
long timeout) |
public VanillaSelector open() throws IOException
IOExceptionpublic VanillaSelector register(@NotNull AbstractSelectableChannel channel, int ops) throws IOException
IOExceptionpublic VanillaSelector register(@NotNull AbstractSelectableChannel channel, int ops, Object obj) throws IOException
IOExceptionpublic VanillaSelector deregister(@NotNull AbstractSelectableChannel channel, int ops)
public int select(int spinLoopCount,
long timeout)
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2021. All rights reserved.