org.ow2.petals.se.eip.async
Class CommonAsyncContext
java.lang.Object
org.ow2.petals.component.framework.process.async.AsyncContext
org.ow2.petals.se.eip.async.CommonAsyncContext
- Direct Known Subclasses:
- RoutingSlipAsyncContext
public class CommonAsyncContext
- extends org.ow2.petals.component.framework.process.async.AsyncContext
- Author:
- Frederic Gardes
|
Constructor Summary |
CommonAsyncContext(org.ow2.petals.component.framework.api.message.Exchange originalExchange,
java.lang.Long timeToLive,
java.lang.String pattern,
int ongoingSubMessages,
boolean faultRobust,
boolean exceptionRobust,
boolean faultToException)
The Constructor |
| Methods inherited from class org.ow2.petals.component.framework.process.async.AsyncContext |
getExpirationTime, getOriginalExchange, getTimeToLive, setStartTime |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_TIME_TO_LIVE
public static final long DEFAULT_TIME_TO_LIVE
- See Also:
- Constant Field Values
CommonAsyncContext
public CommonAsyncContext(org.ow2.petals.component.framework.api.message.Exchange originalExchange,
java.lang.Long timeToLive,
java.lang.String pattern,
int ongoingSubMessages,
boolean faultRobust,
boolean exceptionRobust,
boolean faultToException)
- The Constructor
- Parameters:
originalExchange - timeToLive - pattern - faultRobust - exceptionRobust - ongoingSubMessages - faultToException -
decrementAndGetOngoingSubMessages
public int decrementAndGetOngoingSubMessages()
- Decrement and get the number of messages to wait
- Returns:
- The number of messages to wait
getPattern
public java.lang.String getPattern()
isExceptionRobust
public boolean isExceptionRobust()
- Get the exceptionRobust
- Returns:
- the exceptionRobust
isFaultRobust
public boolean isFaultRobust()
- Get the faultRobust
- Returns:
- the faultRobust
isFaultToException
public boolean isFaultToException()
- Get the faultToException
- Returns:
- the faultToException
isTerminated
public boolean isTerminated()
setTerminated
public void setTerminated()
Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.