org.ow2.petals.component.framework.process.async
Class AsyncContext

java.lang.Object
  extended by org.ow2.petals.component.framework.process.async.AsyncContext

public class AsyncContext
extends java.lang.Object

The Asynchronous context.
The Asynchronous context holds the required data to handle asynchronous message responses in the JBI Listener.
The component developer can extends this class to provide its content of this context.

Author:
rnaudin

Constructor Summary
AsyncContext(org.ow2.petals.component.framework.api.message.Exchange originalExchange)
           
AsyncContext(org.ow2.petals.component.framework.api.message.Exchange originalExchange, java.lang.Long timeToLive)
           
 
Method Summary
 long getExpirationTime()
          Return the expiration time in milliseconds.
 org.ow2.petals.component.framework.api.message.Exchange getOriginalExchange()
           
 long getTimeToLive()
           
 void setStartTime(long startTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncContext

public AsyncContext(org.ow2.petals.component.framework.api.message.Exchange originalExchange)

AsyncContext

public AsyncContext(org.ow2.petals.component.framework.api.message.Exchange originalExchange,
                    java.lang.Long timeToLive)
Method Detail

getOriginalExchange

public org.ow2.petals.component.framework.api.message.Exchange getOriginalExchange()

getTimeToLive

public long getTimeToLive()

setStartTime

public void setStartTime(long startTime)

getExpirationTime

public long getExpirationTime()
Return the expiration time in milliseconds.

Returns:


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.