public class Deferred<A extends org.talares.api.datatypes.items.Item,B>
extends java.lang.Object
F.Promise
of a B to be resolved by an additional call to the
webservice.
The call to said webservice will only be triggered when the value method is accessed.Constructor and Description |
---|
Deferred(org.talares.api.Talares scalaApi,
org.talares.api.datatypes.Deferred<A> scalaDeferred,
play.libs.F.Function2<org.talares.api.Talares,A,B> scalaToJavaFunc) |
public final play.libs.F.Promise<B> getValue()
F.Promise
of a B this Deferred holds.
Fetches the Future
from the Scala Deferred and wraps it in a F.Promise
.
Then applies the transformFunc
to morph the result from a Scala A to it's
Java counterpart B.F.Promise
of Bpublic final B getValue_(long timeout) throws org.talares.api.exceptions.TalaresException
timeout
- the timeout in milliseconds within which the B should be presentorg.talares.api.exceptions.TalaresException
public final B getValue_() throws org.talares.api.exceptions.TalaresException
org.talares.api.exceptions.TalaresException