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
-
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()
-
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
-