|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.cpr.BroadcasterFuture<E>
public class BroadcasterFuture<E>
Simple Future that can be used when awiting for a Broadcaster to finish
it's broadcast operations to AtmosphereHandler
| Constructor Summary | |
|---|---|
BroadcasterFuture(E msg)
|
|
| Method Summary | |
|---|---|
boolean |
cancel(boolean b)
Cancel |
void |
done()
Invoked when a Broadcaster completed it broadcast operation. |
E |
get()
Block until a Broadcaster completed it broadcast operation. |
E |
get(long l,
TimeUnit tu)
Block until a Broadcaster completed it broadcast operation. |
boolean |
isCancelled()
True is cancelled. |
boolean |
isDone()
True when done. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BroadcasterFuture(E msg)
| Method Detail |
|---|
public boolean cancel(boolean b)
cancel in interface Futureb -
public boolean isCancelled()
isCancelled in interface Futurepublic boolean isDone()
isDone in interface Futurepublic void done()
Broadcaster completed it broadcast operation.
public E get()
throws InterruptedException,
ExecutionException
Broadcaster completed it broadcast operation.
get in interface FutureInterruptedException
ExecutionException
public E get(long l,
TimeUnit tu)
throws InterruptedException,
ExecutionException,
TimeoutException
Broadcaster completed it broadcast operation.
get in interface Futurel - The time to wait.The - TimeUnit
InterruptedException
ExecutionException
TimeoutException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||