org.infinispan.util.concurrent
Class NotifyingFutureAdaptor<T>
java.lang.Object
org.infinispan.util.concurrent.BaseNotifyingFuture
org.infinispan.util.concurrent.NotifyingFutureAdaptor<T>
- All Implemented Interfaces:
- Future, NotifyingFuture
public class NotifyingFutureAdaptor<T>
- extends BaseNotifyingFuture
Receives a Future
and exposes it as an NotifyingFuture
.
- Since:
- 5.2
- Author:
- Mircea Markus
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotifyingFutureAdaptor
public NotifyingFutureAdaptor()
setActual
public void setActual(Future<T> actual)
cancel
public boolean cancel(boolean mayInterruptIfRunning)
isCancelled
public boolean isCancelled()
isDone
public boolean isDone()
get
public T get()
throws InterruptedException,
ExecutionException
- Throws:
InterruptedException
ExecutionException
get
public T get(long timeout,
TimeUnit unit)
throws InterruptedException,
ExecutionException,
TimeoutException
- Throws:
InterruptedException
ExecutionException
TimeoutException
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.