47484950515253
/** * @tests serialization/deserialization compatibility with RI. */ public void testSerializationCompatibility() throws Exception { SerializationTest.verifyGolden(this, new CancelledKeyException()); }
114115116117118119120121
this.index = index; } private void checkValid() { if (!isValid()) { throw new CancelledKeyException(); } }
116117118119120121122123
141142143144145146147148149150151
key = ((AbstractSelector) selector).register(this, interestSet, attachment); keyList.add(key); } else { if (!key.isValid()) { throw new CancelledKeyException(); } key.interestOps(interestSet); key.attach(attachment); } return key;
70717273747576
*/ protected void assertValidKey() throws CancelledKeyException { if (isValid()) { return; } throw new CancelledKeyException(); }
104105106107108109110
130131132133134135136
505152535455565758
} public int readyOps() { if (!isValid()) throw new CancelledKeyException(); return readyOps; }
636465666768697071
} public synchronized int interestOps() { if (!isValid()) throw new CancelledKeyException(); return interestOps; }