vishnu.life
Class FutureResponseImpl

java.lang.Object
  extended by vishnu.life.FutureResponseImpl
All Implemented Interfaces:
java.util.concurrent.Future<Response>, Interested<SQLCommand,Command.Notice>

public class FutureResponseImpl
extends java.lang.Object
implements java.util.concurrent.Future<Response>, Interested<SQLCommand,Command.Notice>

 

Constructor Summary
FutureResponseImpl(Command c)
           
 
Method Summary
 boolean cancel(boolean mayInterruptIfRunning)
           
 Response get()
           
 Response get(long timeout, java.util.concurrent.TimeUnit unit)
           
 boolean isCancelled()
           
 boolean isDone()
           
 void notify(SQLCommand interest, Command.Notice notice)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FutureResponseImpl

public FutureResponseImpl(Command c)
Method Detail

cancel

public boolean cancel(boolean mayInterruptIfRunning)
Specified by:
cancel in interface java.util.concurrent.Future<Response>

isCancelled

public boolean isCancelled()
Specified by:
isCancelled in interface java.util.concurrent.Future<Response>

isDone

public boolean isDone()
Specified by:
isDone in interface java.util.concurrent.Future<Response>

get

public Response get()
             throws java.lang.InterruptedException,
                    java.util.concurrent.ExecutionException
Specified by:
get in interface java.util.concurrent.Future<Response>
Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException

get

public Response get(long timeout,
                    java.util.concurrent.TimeUnit unit)
Specified by:
get in interface java.util.concurrent.Future<Response>

notify

public void notify(SQLCommand interest,
                   Command.Notice notice)
Specified by:
notify in interface Interested<SQLCommand,Command.Notice>