com.sun.jini.jeri.internal.mux
Class IOFuture
java.lang.Object
com.sun.jini.jeri.internal.mux.IOFuture
final class IOFuture
- extends Object
An IOFuture represents an I/O operation that may or may not have
completed yet.
- Author:
- Sun Microsystems, Inc.
Method Summary |
(package private) void |
done()
Signals that this I/O operation has completed successfully. |
(package private) void |
done(IOException e)
Signals that this I/O operation has failed (with details of the
failure in the given IOException). |
(package private) void |
waitUntilDone()
Waits until the I/O operation has completed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
done
private boolean done
exception
private IOException exception
IOFuture
IOFuture()
waitUntilDone
void waitUntilDone()
throws IOException,
InterruptedException
- Waits until the I/O operation has completed. If this method
returns normally, then the I/O operation has completed
successfully. If this method throws IOException, then the
I/O operation failed.
REMIND: Maybe we should support a timeout here, as a paranoid
escape hatch; if this wait really takes a long time, something
has gone dreadfully wrong. To a large extent, we're really
depending on someone's finally clause to make sure that pending
instances of this class always get notified somehow.
- Throws:
IOException
- if the I/O operation failed
InterruptedException
- if the current thread was
interrupted while waiting for the I/O to complete.
done
void done()
- Signals that this I/O operation has completed successfully.
done
void done(IOException e)
- Signals that this I/O operation has failed (with details of the
failure in the given IOException).
- Parameters:
e
- detail of the I/O operation's failure
Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.