final class IOFuture extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
data |
private boolean |
done |
private IOException |
exception |
private int |
position |
| 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(int position)
Signals that this I/O operation has remaining data.
|
(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) int |
getPosition() |
(package private) boolean |
waitUntilDone()
Waits until the I/O operation has completed.
|
private boolean done
boolean data
private int position
private IOException exception
boolean 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.int getPosition()
void done()
void done(int position)
position - 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.