org.fusesource.stompjms.client.future
Class CallbackFuture<T>

java.lang.Object
  extended by org.fusesource.stompjms.client.callback.Callback<T>
      extended by org.fusesource.stompjms.client.future.CallbackFuture<T>
All Implemented Interfaces:
Future<T>

public class CallbackFuture<T>
extends Callback<T>
implements Future<T>

Author:
Hiram Chirino

Constructor Summary
CallbackFuture()
           
 
Method Summary
 T await()
           
 T await(long amount, java.util.concurrent.TimeUnit unit)
           
 void failure(java.lang.Throwable value)
           
 void success(T value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallbackFuture

public CallbackFuture()
Method Detail

failure

public void failure(java.lang.Throwable value)
Overrides:
failure in class Callback<T>

success

public void success(T value)
Overrides:
success in class Callback<T>

await

public T await(long amount,
               java.util.concurrent.TimeUnit unit)
        throws java.lang.Exception
Specified by:
await in interface Future<T>
Throws:
java.lang.Exception

await

public T await()
        throws java.lang.Exception
Specified by:
await in interface Future<T>
Throws:
java.lang.Exception


Copyright © 2010-2011 FuseSource, Corp.. All Rights Reserved.