org.apache.servicemix.bean.support
Class Holder

java.lang.Object
  extended by org.apache.servicemix.bean.support.Holder
All Implemented Interfaces:
Future<javax.jbi.messaging.NormalizedMessage>

public class Holder
extends Object
implements Future<javax.jbi.messaging.NormalizedMessage>


Constructor Summary
Holder()
           
 
Method Summary
 boolean cancel(boolean mayInterruptIfRunning)
           
protected  javax.jbi.messaging.NormalizedMessage extract(javax.jbi.messaging.MessageExchange me)
           
 javax.jbi.messaging.NormalizedMessage get()
           
 javax.jbi.messaging.NormalizedMessage get(long timeout, TimeUnit unit)
           
 boolean isCancelled()
           
 boolean isDone()
           
 void set(javax.jbi.messaging.MessageExchange t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Holder

public Holder()
Method Detail

get

public javax.jbi.messaging.NormalizedMessage get()
                                          throws InterruptedException,
                                                 ExecutionException
Specified by:
get in interface Future<javax.jbi.messaging.NormalizedMessage>
Throws:
InterruptedException
ExecutionException

get

public javax.jbi.messaging.NormalizedMessage get(long timeout,
                                                 TimeUnit unit)
                                          throws InterruptedException,
                                                 ExecutionException
Specified by:
get in interface Future<javax.jbi.messaging.NormalizedMessage>
Throws:
InterruptedException
ExecutionException

set

public void set(javax.jbi.messaging.MessageExchange t)

cancel

public boolean cancel(boolean mayInterruptIfRunning)
Specified by:
cancel in interface Future<javax.jbi.messaging.NormalizedMessage>

isCancelled

public boolean isCancelled()
Specified by:
isCancelled in interface Future<javax.jbi.messaging.NormalizedMessage>

isDone

public boolean isDone()
Specified by:
isDone in interface Future<javax.jbi.messaging.NormalizedMessage>

extract

protected javax.jbi.messaging.NormalizedMessage extract(javax.jbi.messaging.MessageExchange me)
                                                 throws ExecutionException
Throws:
ExecutionException


Copyright © 2005-2008 The Apache Software Foundation. All Rights Reserved.