Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.nio.channels.spi

Class AbstractSelector

java.lang.Object
|
+--java.nio.channels.Selector
   |
   +--java.nio.channels.spi.AbstractSelector


public abstract class AbstractSelector

extends Selector

Constructor Summary

AbstractSelector(java.nio.channels.spi.SelectorProvider provider)

Initializes the slector.

Method Summary

voidbegin()

Marks the beginning of an I/O operation that might block indefinitely.
java.util.SetcancelledKeys()

voidclose()

Closes the channel.
voidderegister(java.nio.channels.spi.AbstractSelectionKey key)

voidend()

voidimplCloseSelector()

Closes the channel.
booleanisOpen()

Tells whether this channel is open or not.
java.nio.channels.spi.SelectorProviderprovider()

java.nio.channels.SelectionKeyregister(java.nio.channels.spi.AbstractSelectableChannel ch, int ops, java.lang.Object att)

Constructor Details

AbstractSelector

protected AbstractSelector(java.nio.channels.spi.SelectorProvider provider)

Initializes the slector.

Parameters:


Method Details

begin

protected final void begin()

Marks the beginning of an I/O operation that might block indefinitely.


cancelledKeys

protected final Set cancelledKeys()


close

public final void close()

Closes the channel.

Throws:


deregister

protected final void deregister(java.nio.channels.spi.AbstractSelectionKey key)

Parameters:


end

protected final void end()


implCloseSelector

protected void implCloseSelector()

Closes the channel.


isOpen

public final boolean isOpen()

Tells whether this channel is open or not.


provider

public final SelectorProvider provider()


register

protected SelectionKey register(java.nio.channels.spi.AbstractSelectableChannel ch, int ops, java.lang.Object att)

Parameters: