Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.simpleworkflow.flow.core
Class AndPromise

java.lang.Object
  extended by com.amazonaws.services.simpleworkflow.flow.core.Promise<java.lang.Void>
      extended by com.amazonaws.services.simpleworkflow.flow.core.AndPromise

public class AndPromise
extends Promise<java.lang.Void>

Promise that becomes ready when all its values are ready. null value is considered ready.


Constructor Summary
AndPromise(java.util.Collection<Promise> collection)
           
AndPromise(Promise<?>... values)
           
 
Method Summary
 java.lang.Void get()
           
 Promise[] getValues()
           
 boolean isReady()
           
 
Methods inherited from class com.amazonaws.services.simpleworkflow.flow.core.Promise
asPromise, getDescription, Void
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AndPromise

public AndPromise(Promise<?>... values)

AndPromise

public AndPromise(java.util.Collection<Promise> collection)
Method Detail

getValues

public Promise[] getValues()

get

public java.lang.Void get()
Specified by:
get in class Promise<java.lang.Void>
Returns:
result of your asynchronous computation

isReady

public boolean isReady()
Specified by:
isReady in class Promise<java.lang.Void>
Returns:
true if the result of your asynchronous computation is available


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.