Uses of Class
java.nio.channels.Selector
| Package | Description |
|---|---|
| java.nio.channels | |
| java.nio.channels.spi |
-
Uses of Selector in java.nio.channels
Methods in java.nio.channels that return Selector Modifier and Type Method Description static SelectorSelector. open()Returns a selector returned bySelectorProvider.provider'sSelectorProvider.openSelector()method.abstract SelectorSelectionKey. selector()Gets the selector for which this key's channel is registered.abstract SelectorSelector. wakeup()Forces blockedselectoperations to return immediately.Methods in java.nio.channels with parameters of type Selector Modifier and Type Method Description abstract SelectionKeySelectableChannel. keyFor(Selector sel)Gets this channel's selection key for the specified selector.SelectionKeySelectableChannel. register(Selector selector, int operations)Registers this channel with the specified selector for the specified interest set.abstract SelectionKeySelectableChannel. register(Selector sel, int ops, Object att)Registers this channel with the specified selector for the specified interest set and an object to attach. -
Uses of Selector in java.nio.channels.spi
Subclasses of Selector in java.nio.channels.spi Modifier and Type Class Description classAbstractSelectorAbstractSelectoris the base implementation class for selectors.Methods in java.nio.channels.spi with parameters of type Selector Modifier and Type Method Description SelectionKeyAbstractSelectableChannel. keyFor(Selector selector)Gets this channel's selection key for the specified selector.SelectionKeyAbstractSelectableChannel. register(Selector selector, int interestSet, Object attachment)Registers this channel with the specified selector for the specified interest set.