org.atmosphere.cpr
Class BroadcasterFuture<E>
java.lang.Object
org.atmosphere.cpr.BroadcasterFuture<E>
- All Implemented Interfaces:
- Future
public class BroadcasterFuture<E>
- extends Object
- implements Future
Simple Future that can be used when awaiting for a Broadcaster to finish
its broadcast operation to AtmosphereHandler.
- Author:
- Jeanfrancois Arcand
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BroadcasterFuture
public BroadcasterFuture(E msg)
BroadcasterFuture
public BroadcasterFuture(Future<?> innerFuture,
E msg)
BroadcasterFuture
public BroadcasterFuture(E msg,
int latchCount)
BroadcasterFuture
public BroadcasterFuture(Future<?> innerFuture,
E msg,
int latchCount)
cancel
public boolean cancel(boolean b)
- Specified by:
cancel in interface Future
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled in interface Future
isDone
public boolean isDone()
- Specified by:
isDone in interface Future
done
public BroadcasterFuture<E> done()
- Invoked when a
Broadcaster completed its broadcast operation.
get
public E get()
throws InterruptedException,
ExecutionException
- Specified by:
get in interface Future
- Throws:
InterruptedException
ExecutionException
get
public E get(long l,
TimeUnit tu)
throws InterruptedException,
ExecutionException,
TimeoutException
- Specified by:
get in interface Future
- Throws:
InterruptedException
ExecutionException
TimeoutException
Copyright © 2014. All Rights Reserved.