Did this page help you?

   Yes   No   Tell us about it...

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

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

public class OrPromise
extends Promise<Void>

Promise that becomes ready when any of its values becomes ready. null value is considered ready.


Constructor Summary
OrPromise(Promise<?>... values)
           
 
Method Summary
 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

OrPromise

public OrPromise(Promise<?>... values)
Method Detail

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.