Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.chromium.sdk.util
Class AsyncFutureRef<T>

    java.lang.Object
      org.chromium.sdk.util.AsyncFutureRef<T>

    public class AsyncFutureRef<T>

extends java.lang.Object

A wrapper around `AtomicReference` and `AsyncFuture` that makes the source code cleaner and shorter.

Constructor Summary
`AsyncFutureRef()`

Method Summary
`RelayOk` | `getAsync(AsyncFuture.Callback<T> callback, SyncCallback syncCallback)`
`T` | `getSync()`
`void` | `initializeRunning(AsyncFuture.Operation<T> requester)`
`void` | `initializeTrivial(T value)`
`boolean` | `isDone()`
`boolean` | `isInitialized()`
`void` | `reinitializeRunning(AsyncFuture.Operation<T> requester)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### AsyncFutureRef

    public AsyncFutureRef()

Method Detail

### initializeRunning

    public void initializeRunning(AsyncFuture.Operation<T> requester)

### reinitializeRunning

    public void reinitializeRunning(AsyncFuture.Operation<T> requester)

### initializeTrivial

    public void initializeTrivial(T value)

### isInitialized

    public boolean isInitialized()

### getSync

    public T getSync()
              throws MethodIsBlockingException

  Throws:
    `MethodIsBlockingException`

### getAsync

    public RelayOk getAsync(AsyncFuture.Callback<T> callback,
                            SyncCallback syncCallback)

### isDone

    public boolean isDone()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD