org.logicblaze.lingo.jms.impl
Class FutureHandler

java.lang.Object
  extended by edu.emory.mathcs.backport.java.util.concurrent.FutureTask
      extended by org.logicblaze.lingo.jms.impl.FutureHandler
All Implemented Interfaces:
edu.emory.mathcs.backport.java.util.concurrent.Future, edu.emory.mathcs.backport.java.util.concurrent.RunnableFuture, java.lang.Runnable, ReplyHandler

public class FutureHandler
extends edu.emory.mathcs.backport.java.util.concurrent.FutureTask
implements ReplyHandler

A FutureResult which implements ReplyHandler so that it can be used as a handler for a correlation ID

Version:
$Revision$

Constructor Summary
FutureHandler()
           
 
Method Summary
 boolean handle(javax.jms.Message message)
          Processes the message, returning true if this is the last method of a lifecycle so that the handler can be discarded
 void set(java.lang.Object result)
           
 
Methods inherited from class edu.emory.mathcs.backport.java.util.concurrent.FutureTask
cancel, done, get, get, isCancelled, isDone, run, runAndReset, setException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FutureHandler

public FutureHandler()
Method Detail

set

public void set(java.lang.Object result)
Overrides:
set in class edu.emory.mathcs.backport.java.util.concurrent.FutureTask

handle

public boolean handle(javax.jms.Message message)
               throws javax.jms.JMSException
Description copied from interface: ReplyHandler
Processes the message, returning true if this is the last method of a lifecycle so that the handler can be discarded

Specified by:
handle in interface ReplyHandler
Throws:
javax.jms.JMSException


Copyright © 2009 LogicBlaze, Inc.. All Rights Reserved.