org.granite.client.messaging.channel
Class ImmediateFailureResponseMessageFuture

java.lang.Object
  extended by org.granite.client.messaging.channel.ImmediateFailureResponseMessageFuture
All Implemented Interfaces:
ResponseMessageFuture

public class ImmediateFailureResponseMessageFuture
extends Object
implements ResponseMessageFuture

Author:
Franck WOLFF

Constructor Summary
ImmediateFailureResponseMessageFuture(Exception cause)
           
 
Method Summary
 boolean cancel()
           
 ResponseMessage get()
           
 boolean isCancelled()
           
 boolean isDone()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmediateFailureResponseMessageFuture

public ImmediateFailureResponseMessageFuture(Exception cause)
Method Detail

cancel

public boolean cancel()
Specified by:
cancel in interface ResponseMessageFuture

get

public ResponseMessage get()
                    throws InterruptedException,
                           ExecutionException,
                           TimeoutException
Specified by:
get in interface ResponseMessageFuture
Throws:
InterruptedException
ExecutionException
TimeoutException

isCancelled

public boolean isCancelled()
Specified by:
isCancelled in interface ResponseMessageFuture

isDone

public boolean isDone()
Specified by:
isDone in interface ResponseMessageFuture