org.ow2.petals.se.eip.async
Class CommonAsyncContext

java.lang.Object
  extended by org.ow2.petals.component.framework.process.async.AsyncContext
      extended by 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

Field Summary
static long DEFAULT_TIME_TO_LIVE
           
 
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
 
Method Summary
 int decrementAndGetOngoingSubMessages()
          Decrement and get the number of messages to wait
 java.lang.String getPattern()
           
 boolean isExceptionRobust()
          Get the exceptionRobust
 boolean isFaultRobust()
          Get the faultRobust
 boolean isFaultToException()
          Get the faultToException
 boolean isTerminated()
           
 void setTerminated()
           
 
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
 

Field Detail

DEFAULT_TIME_TO_LIVE

public static final long DEFAULT_TIME_TO_LIVE
See Also:
Constant Field Values
Constructor Detail

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 -
Method Detail

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.