|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.wasync.impl.DefaultFuture
public class DefaultFuture
The default Future used by the library, based on the CountDownLatch
| Constructor Summary | |
|---|---|
DefaultFuture(DefaultSocket socket)
|
|
| Method Summary | |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning)
|
Future |
done()
Mark the future done. |
Future |
fire(Object data)
Send data to the remote Server. |
Socket |
get()
|
Socket |
get(long timeout,
TimeUnit unit)
|
boolean |
isCancelled()
|
boolean |
isDone()
|
protected void |
reset()
|
protected Socket |
socket()
|
long |
time()
|
DefaultFuture |
timeoutException(TimeoutException te)
|
TimeUnit |
timeUnit()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultFuture(DefaultSocket socket)
| Method Detail |
|---|
public long time()
public TimeUnit timeUnit()
public DefaultFuture timeoutException(TimeoutException te)
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 Future done()
Futureprotected void reset()
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
TimeoutExceptionprotected Socket socket()
public Future fire(Object data)
throws IOException
data - the message to fire
Future
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||