|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.cmi.lb.decision.BasicDecisionManager<ReturnType>
ReturnType - the type of the returned value (can be Void)@Immutable public final class BasicDecisionManager<ReturnType>
Encapsulates a decision and an eventually returned value.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.ow2.cmi.lb.decision.DecisionManager |
|---|
org.ow2.cmi.lb.decision.DecisionManager.Decision |
| Method Summary | ||
|---|---|---|
static BasicDecisionManager<java.lang.Void> |
doRetry()
Creates a RETRY decision. |
|
static
|
doReturn(ReturnType retVal)
Creates a RETURN decision. |
|
static BasicDecisionManager<java.lang.Void> |
doThrow(java.lang.Throwable throwable)
Creates a THROW decision. |
|
org.ow2.cmi.lb.decision.DecisionManager.Decision |
getDecision()
|
|
ReturnType |
getRetVal()
|
|
java.lang.Throwable |
getThrowable()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static BasicDecisionManager<java.lang.Void> doRetry()
public static BasicDecisionManager<java.lang.Void> doThrow(java.lang.Throwable throwable)
throwable - an exception to throw
public static <ReturnType> BasicDecisionManager<ReturnType> doReturn(ReturnType retVal)
ReturnType - the type of the returned value (can be Void)retVal - the value to return
public org.ow2.cmi.lb.decision.DecisionManager.Decision getDecision()
getDecision in interface org.ow2.cmi.lb.decision.DecisionManager<ReturnType>public ReturnType getRetVal()
getRetVal in interface org.ow2.cmi.lb.decision.DecisionManager<ReturnType>public java.lang.Throwable getThrowable()
getThrowable in interface org.ow2.cmi.lb.decision.DecisionManager<ReturnType>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||