org.apache.servicemix.bean.support
Class Holder
java.lang.Object
org.apache.servicemix.bean.support.Holder
- All Implemented Interfaces:
- Future<NormalizedMessage>
public class Holder
- extends Object
- implements Future<NormalizedMessage>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Holder
public Holder()
get
public NormalizedMessage get()
throws InterruptedException,
ExecutionException
- Specified by:
get in interface Future<NormalizedMessage>
- Throws:
InterruptedException
ExecutionException
get
public NormalizedMessage get(long timeout,
TimeUnit unit)
throws InterruptedException,
ExecutionException
- Specified by:
get in interface Future<NormalizedMessage>
- Throws:
InterruptedException
ExecutionException
set
public void set(MessageExchange t)
cancel
public boolean cancel(boolean mayInterruptIfRunning)
- Specified by:
cancel in interface Future<NormalizedMessage>
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled in interface Future<NormalizedMessage>
isDone
public boolean isDone()
- Specified by:
isDone in interface Future<NormalizedMessage>
extract
protected NormalizedMessage extract(MessageExchange me)
throws ExecutionException
- Throws:
ExecutionException
Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.