org.apache.servicemix.bean.support
Class Holder

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

public class Holder
extends java.lang.Object
implements java.util.concurrent.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, java.util.concurrent.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 java.lang.InterruptedException,
                                                 java.util.concurrent.ExecutionException
Specified by:
get in interface java.util.concurrent.Future<javax.jbi.messaging.NormalizedMessage>
Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException

get

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

set

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

cancel

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

isCancelled

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

isDone

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

extract

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


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