Name
AbstractSelectableChannel
Synopsis
This class exists as a convenience for
implementors of new selectable channel classes: it defines common
methods of SelectableChannel
in terms of protected
methods whose names begin with impl
. Application
programmers should never need to use or subclass this class.
Figure 13-44. java.nio.channels.spi.AbstractSelectableChannel
public abstract class AbstractSelectableChannel extends java.nio.channels. SelectableChannel { // Protected Constructors protected AbstractSelectableChannel(SelectorProvider provider); // Public Methods Overriding SelectableChannel public final Object blockingLock( ); public final java.nio.channels.SelectableChannel configureBlocking(boolean block) throws java.io.IOException; public final boolean isBlocking( ); public final boolean isRegistered( ); public final java.nio.channels.SelectionKey keyFor(java.nio.channels. Selector sel); public final SelectorProvider provider( ); public final java.nio.channels.SelectionKey register(java.nio.channels. Selector sel, int ops, Object att) throws java.nio.channels.ClosedChannelException; // Protected Methods Overriding AbstractInterruptibleChannel protected final void implCloseChannel( ) throws java.io.IOException; // Protected Instance Methods protected abstract void implCloseSelectableChannel( ) throws java.io.IOException; protected abstract void implConfigureBlocking(boolean block ...
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.