|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.util.SlotFuture<V>
public class SlotFuture<V>
Implementation of Future that completes
when a thread writes a value (or an exception) into a slot.
| Constructor Summary | |
|---|---|
SlotFuture()
Creates a SlotFuture. |
|
| Method Summary | |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning)
|
void |
fail(Throwable throwable)
Writes a throwable into the slot, indicating that the task has failed. |
V |
get()
|
V |
get(long timeout,
TimeUnit unit)
|
boolean |
isCancelled()
|
boolean |
isDone()
|
void |
put(V value)
Writes a value into the slot, indicating that the task has completed successfully. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SlotFuture()
| Method Detail |
|---|
public boolean cancel(boolean mayInterruptIfRunning)
cancel in interface Future<V>public boolean isCancelled()
isCancelled in interface Future<V>public boolean isDone()
isDone in interface Future<V>
public V get()
throws ExecutionException,
InterruptedException
get in interface Future<V>ExecutionException
InterruptedException
public V get(long timeout,
TimeUnit unit)
throws ExecutionException,
InterruptedException,
TimeoutException
get in interface Future<V>ExecutionException
InterruptedException
TimeoutExceptionpublic void put(V value)
value - Value to yield as the result of the computation
IllegalArgumentException - if put, fail or cancel has already
been invoked on this futurepublic void fail(Throwable throwable)
throwable - Exception that aborted the computation
IllegalArgumentException - if put, fail or cancel has already
been invoked on this future
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||