org.apache.camel.component.jms.requestor
Class PersistentReplyToFutureHandler

java.lang.Object
  extended by java.util.concurrent.FutureTask<Message>
      extended by org.apache.camel.component.jms.requestor.FutureHandler
          extended by org.apache.camel.component.jms.requestor.PersistentReplyToFutureHandler
All Implemented Interfaces:
Runnable, Future<Message>, ReplyHandler

public class PersistentReplyToFutureHandler
extends FutureHandler


Field Summary
protected  DeferredRequestReplyMap.DeferredMessageSentCallback callback
           
protected  String correlationID
           
protected  PersistentReplyToRequestor requestor
           
 
Constructor Summary
PersistentReplyToFutureHandler(PersistentReplyToRequestor requestor, DeferredRequestReplyMap.DeferredMessageSentCallback callback)
           
PersistentReplyToFutureHandler(PersistentReplyToRequestor requestor, String correlationID)
           
 
Method Summary
 Message get()
           
 Message get(long timeout, TimeUnit unit)
           
protected  void revertSelector()
           
protected  void updateSelector()
           
 
Methods inherited from class org.apache.camel.component.jms.requestor.FutureHandler
handle, set
 
Methods inherited from class java.util.concurrent.FutureTask
cancel, done, isCancelled, isDone, run, runAndReset, setException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

requestor

protected PersistentReplyToRequestor requestor

callback

protected DeferredRequestReplyMap.DeferredMessageSentCallback callback

correlationID

protected String correlationID
Constructor Detail

PersistentReplyToFutureHandler

public PersistentReplyToFutureHandler(PersistentReplyToRequestor requestor,
                                      String correlationID)

PersistentReplyToFutureHandler

public PersistentReplyToFutureHandler(PersistentReplyToRequestor requestor,
                                      DeferredRequestReplyMap.DeferredMessageSentCallback callback)
Method Detail

get

public Message get()
            throws InterruptedException,
                   ExecutionException
Specified by:
get in interface Future<Message>
Overrides:
get in class FutureTask<Message>
Throws:
InterruptedException
ExecutionException

get

public Message get(long timeout,
                   TimeUnit unit)
            throws InterruptedException,
                   ExecutionException,
                   TimeoutException
Specified by:
get in interface Future<Message>
Overrides:
get in class FutureTask<Message>
Throws:
InterruptedException
ExecutionException
TimeoutException

updateSelector

protected void updateSelector()
                       throws ExecutionException
Throws:
ExecutionException

revertSelector

protected void revertSelector()
                       throws ExecutionException
Throws:
ExecutionException


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.