final class IOFuture extends Object
Modifier and Type | Field and Description |
---|---|
private boolean |
done |
private IOException |
exception |
Constructor and Description |
---|
IOFuture() |
Modifier and Type | Method and Description |
---|---|
(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.
|
private boolean done
private IOException exception
void waitUntilDone() throws IOException, InterruptedException
IOException
- if the I/O operation failedInterruptedException
- if the current thread was
interrupted while waiting for the I/O to complete.void done()
void done(IOException e)
e
- detail of the I/O operation's failureCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.