org.sdnplatform.sync.internal.remote
Class RemoteSyncFuture
java.lang.Object
org.sdnplatform.sync.internal.remote.RemoteSyncFuture
- All Implemented Interfaces:
- java.util.concurrent.Future<SyncReply>
public class RemoteSyncFuture
- extends java.lang.Object
- implements java.util.concurrent.Future<SyncReply>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteSyncFuture
public RemoteSyncFuture(int xid,
int connectionGeneration)
cancel
public boolean cancel(boolean mayInterruptIfRunning)
- Specified by:
cancel
in interface java.util.concurrent.Future<SyncReply>
get
public SyncReply get()
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException
- Specified by:
get
in interface java.util.concurrent.Future<SyncReply>
- Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
get
public SyncReply get(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException,
java.util.concurrent.TimeoutException
- Specified by:
get
in interface java.util.concurrent.Future<SyncReply>
- Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled
in interface java.util.concurrent.Future<SyncReply>
isDone
public boolean isDone()
- Specified by:
isDone
in interface java.util.concurrent.Future<SyncReply>
getXid
protected int getXid()
- Get the xid for this message
- Returns:
getConnectionGeneration
protected int getConnectionGeneration()
- Get the connection generation for this future
- Returns:
setReply
protected void setReply(SyncReply reply)
- Set the reply message
- Parameters:
reply
-