src/share/classes/sun/nio/ch/SelectionKeyImpl.java

Print this page

        

*** 32,47 **** /** * An implementation of SelectionKey for Solaris. */ ! class SelectionKeyImpl extends AbstractSelectionKey { final SelChImpl channel; // package-private ! final SelectorImpl selector; // package-private // Index for a pollfd array in Selector that this key is registered with private int index; private volatile int interestOps; --- 32,47 ---- /** * An implementation of SelectionKey for Solaris. */ ! public class SelectionKeyImpl extends AbstractSelectionKey { final SelChImpl channel; // package-private ! public final SelectorImpl selector; // Index for a pollfd array in Selector that this key is registered with private int index; private volatile int interestOps;
*** 89,114 **** } // The nio versions of these operations do not care if a key // has been invalidated. They are for internal use by nio code. ! void nioReadyOps(int ops) { // package-private readyOps = ops; } ! int nioReadyOps() { // package-private return readyOps; } ! SelectionKey nioInterestOps(int ops) { // package-private if ((ops & ~channel().validOps()) != 0) throw new IllegalArgumentException(); channel.translateAndSetInterestOps(ops, this); interestOps = ops; return this; } ! int nioInterestOps() { // package-private return interestOps; } } --- 89,114 ---- } // The nio versions of these operations do not care if a key // has been invalidated. They are for internal use by nio code. ! public void nioReadyOps(int ops) { readyOps = ops; } ! public int nioReadyOps() { return readyOps; } ! public SelectionKey nioInterestOps(int ops) { if ((ops & ~channel().validOps()) != 0) throw new IllegalArgumentException(); channel.translateAndSetInterestOps(ops, this); interestOps = ops; return this; } ! public int nioInterestOps() { return interestOps; } }