|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.lucis.core.impl.MayFail<T>
T - Result type.public abstract class MayFail<T>
A writer is the object that applies the operations into a store.
| Method Summary | ||
|---|---|---|
IndexException |
getException()
|
|
T |
getResult()
|
|
abstract IndexStatus |
getStatus()
|
|
static
|
of(Callable<V> callabe)
Runs a possibly failed result from the execution of a callable. |
|
static
|
run(Callable<V> callabe)
Runs a callable translating the exceptions, except InterruptedException. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public abstract IndexStatus getStatus()
public T getResult()
public IndexException getException()
public static <V> V run(Callable<V> callabe)
throws InterruptedException
InterruptedException.
V - Result type.callabe - Callable to run.
IndexException - If an error occurs.
InterruptedException - if the current task has been interrupted.
public static <V> MayFail<V> of(Callable<V> callabe)
throws InterruptedException
V - Result type.callabe - Callable to run.
InterruptedException - if the current task has been interrupted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||