vishnu.life
Class FutureResponseImpl
java.lang.Object
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>
-
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FutureResponseImpl
public FutureResponseImpl(Command c)
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>