Package org.atmosphere.cpr
Class BroadcasterFuture<E>
java.lang.Object
org.atmosphere.cpr.BroadcasterFuture<E>
- All Implemented Interfaces:
Future<E>
Simple
Future that can be used when awaiting for a Broadcaster to finish
its broadcast operation to AtmosphereHandler.- Author:
- Jeanfrancois Arcand
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State -
Constructor Summary
ConstructorsConstructorDescriptionBroadcasterFuture(E msg) BroadcasterFuture(E msg, int latchCount) BroadcasterFuture(Future<?> innerFuture, E msg) BroadcasterFuture(Future<?> innerFuture, E msg, int latchCount) -
Method Summary
Modifier and TypeMethodDescriptionbooleancancel(boolean b) done()Invoked when aBroadcastercompleted its broadcast operation.get()booleanbooleanisDone()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, state
-
Constructor Details
-
BroadcasterFuture
-
BroadcasterFuture
-
BroadcasterFuture
-
BroadcasterFuture
-
-
Method Details
-
cancel
public boolean cancel(boolean b) -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<E>
-
isDone
public boolean isDone() -
done
Invoked when aBroadcastercompleted its broadcast operation. -
get
- Specified by:
getin interfaceFuture<E>- Throws:
InterruptedExceptionExecutionException
-
get
- Specified by:
getin interfaceFuture<E>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-