Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.simpleworkflow.flow.worker
Class CurrentDecisionContext

java.lang.Object
  extended by com.amazonaws.services.simpleworkflow.flow.worker.CurrentDecisionContext

public abstract class CurrentDecisionContext
extends Object

Holds DecisionContext for currently executing decision task. Do not use this class directly. Instead use DecisionContextProviderImpl.


Constructor Summary
CurrentDecisionContext()
           
 
Method Summary
static DecisionContext get()
          retrieves the current DecisionContext for a particular thread
static boolean isSet()
           
static void set(DecisionContext context)
           
static void unset()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurrentDecisionContext

public CurrentDecisionContext()
Method Detail

get

public static DecisionContext get()
retrieves the current DecisionContext for a particular thread

Returns:
current decider context being used for the decision
Throws:
IllegalStateException - if this method is called outside the scope of workflow definition.

isSet

public static boolean isSet()
Returns:
if context is set which means that code is executed as part of the decision.

set

public static void set(DecisionContext context)

unset

public static void unset()


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