< prev index next >
src/java.httpclient/share/classes/java/net/http/HttpClientImpl.java
Print this page
rev 15335 : Async Queues
@@ -152,11 +152,11 @@
* 4) - mark connection as blocking
* 5) - call AsyncEvent.handle()
*
* If exchange needs to block again, then call registerEvent() again
*/
- void registerEvent(AsyncEvent exchange) throws IOException {
+ void registerEvent(AsyncEvent exchange) {
selmgr.register(exchange);
}
/**
* Only used from RawChannel to disconnect the channel from
@@ -225,11 +225,11 @@
}
// This returns immediately. So caller not allowed to send/receive
// on connection.
- synchronized void register(AsyncEvent e) throws IOException {
+ synchronized void register(AsyncEvent e) {
registrations.add(e);
selector.wakeup();
}
synchronized void cancel(SocketChannel e) {
< prev index next >