com.amazonaws.services.simpleworkflow.flow.core
Class AndPromise
java.lang.Object
com.amazonaws.services.simpleworkflow.flow.core.Promise<Void>
com.amazonaws.services.simpleworkflow.flow.core.AndPromise
public class AndPromise
- extends Promise<Void>
Promise that becomes ready when all its values are ready. null
value is considered ready.
AndPromise
public AndPromise(Promise<?>... values)
AndPromise
public AndPromise(Collection<Promise> collection)
getValues
public Promise[] getValues()
get
public Void get()
- Specified by:
get in class Promise<Void>
- Returns:
- result of your asynchronous computation
isReady
public boolean isReady()
- Specified by:
isReady in class Promise<Void>
- Returns:
true if the result of your asynchronous computation
is available
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.