|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.wasync.util.FutureProxy<T>
public class FutureProxy<T extends Future>
| Constructor Summary | |
|---|---|
FutureProxy(Socket socket,
T proxyiedFuture)
|
|
| Method Summary | |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning)
|
void |
close()
Close the underlying Socket |
void |
done()
Mark this instance as done. |
Future |
finishOrThrowException()
Mark the future done. |
Future |
fire(Object data)
Send data to the remote Server. |
Socket |
get()
|
Socket |
get(long timeout,
TimeUnit unit)
|
Future |
ioException(IOException t)
If an exception occurs, the Transport will set it using this method. |
boolean |
isCancelled()
|
boolean |
isDone()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FutureProxy(Socket socket,
T proxyiedFuture)
| Method Detail |
|---|
public Future fire(Object data)
throws IOException
Future
data - the message to fire
Future
IOException
public Future finishOrThrowException()
throws IOException
Future
Future
IOExceptionpublic Future ioException(IOException t)
FutureTransport will set it using this method. An application can also
use that method to interrupt a blocking Socket.open(Request) operation. This operation
must unlock the current blocked thread.
t - a IOException
Futurepublic void done()
Future
public boolean cancel(boolean mayInterruptIfRunning)
cancel in interface Future<Socket>public boolean isCancelled()
isCancelled in interface Future<Socket>public boolean isDone()
isDone in interface Future<Socket>
public Socket get()
throws InterruptedException,
ExecutionException
get in interface Future<Socket>InterruptedException
ExecutionException
public Socket get(long timeout,
TimeUnit unit)
throws InterruptedException,
ExecutionException,
TimeoutException
get in interface Future<Socket>InterruptedException
ExecutionException
TimeoutExceptionpublic void close()
FutureSocket
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||