public class AsyncFutureRef<T>
extends java.lang.Object
AtomicReference and AsyncFuture that makes the source code
cleaner and shorter.| Constructor and Description |
|---|
AsyncFutureRef() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public void initializeRunning(AsyncFuture.Operation<T> requester)
public void reinitializeRunning(AsyncFuture.Operation<T> requester)
public void initializeTrivial(T value)
public boolean isInitialized()
public T getSync() throws MethodIsBlockingException
MethodIsBlockingExceptionpublic RelayOk getAsync(AsyncFuture.Callback<T> callback, SyncCallback syncCallback)
public boolean isDone()
Copyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.