public abstract static class SoyValueProvider.ResolveStatus extends Object
SoyValueProvider.resolve() can be called without
blocking.| Modifier and Type | Method and Description |
|---|---|
abstract Future<?> |
future()
Returns the future that must be done prior to calling resolve.
|
abstract boolean |
isReady()
Returns
true if the SoyValueProvider can be resolved without blocking. |
static SoyValueProvider.ResolveStatus |
ready()
Returns a
SoyValueProvider.ResolveStatus that indicates that SoyValueProvider.resolve() can be
called without blocking. |
static SoyValueProvider.ResolveStatus |
resolveAfter(Future<?> future)
Returns a
SoyValueProvider.ResolveStatus that indicates that SoyValueProvider.resolve() cannot
be called until the given future is done. |
public static SoyValueProvider.ResolveStatus ready()
SoyValueProvider.ResolveStatus that indicates that SoyValueProvider.resolve() can be
called without blocking.public static SoyValueProvider.ResolveStatus resolveAfter(Future<?> future)
SoyValueProvider.ResolveStatus that indicates that SoyValueProvider.resolve() cannot
be called until the given future is done.public abstract Future<?> future()
IllegalStateException - if isReady() returns truepublic abstract boolean isReady()
true if the SoyValueProvider can be resolved without blocking.