equal
deleted
inserted
replaced
109 /** |
109 /** |
110 * Returns an <a href="SelectionKey.html#opsets">operation set</a> |
110 * Returns an <a href="SelectionKey.html#opsets">operation set</a> |
111 * identifying this channel's supported operations. The bits that are set |
111 * identifying this channel's supported operations. The bits that are set |
112 * in this integer value denote exactly the operations that are valid for |
112 * in this integer value denote exactly the operations that are valid for |
113 * this channel. This method always returns the same value for a given |
113 * this channel. This method always returns the same value for a given |
114 * concrete channel class. </p> |
114 * concrete channel class. |
115 * |
115 * |
116 * @return The valid-operation set |
116 * @return The valid-operation set |
117 */ |
117 */ |
118 public abstract int validOps(); |
118 public abstract int validOps(); |
119 |
119 |
138 // |
138 // |
139 // sync(keySet) { return isRegistered; } |
139 // sync(keySet) { return isRegistered; } |
140 |
140 |
141 /** |
141 /** |
142 * Retrieves the key representing the channel's registration with the given |
142 * Retrieves the key representing the channel's registration with the given |
143 * selector. </p> |
143 * selector. |
144 * |
144 * |
145 * @return The key returned when this channel was last registered with the |
145 * @return The key returned when this channel was last registered with the |
146 * given selector, or <tt>null</tt> if this channel is not |
146 * given selector, or <tt>null</tt> if this channel is not |
147 * currently registered with that selector |
147 * currently registered with that selector |
148 */ |
148 */ |
331 /** |
331 /** |
332 * Retrieves the object upon which the {@link #configureBlocking |
332 * Retrieves the object upon which the {@link #configureBlocking |
333 * configureBlocking} and {@link #register register} methods synchronize. |
333 * configureBlocking} and {@link #register register} methods synchronize. |
334 * This is often useful in the implementation of adaptors that require a |
334 * This is often useful in the implementation of adaptors that require a |
335 * specific blocking mode to be maintained for a short period of time. |
335 * specific blocking mode to be maintained for a short period of time. |
336 * </p> |
|
337 * |
336 * |
338 * @return The blocking-mode lock object |
337 * @return The blocking-mode lock object |
339 */ |
338 */ |
340 public abstract Object blockingLock(); |
339 public abstract Object blockingLock(); |
341 |
340 |