org.sdnplatform.sync.internal.remote
Class RemoteSyncFuture

java.lang.Object
  extended by 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>


Constructor Summary
RemoteSyncFuture(int xid, int connectionGeneration)
           
 
Method Summary
 boolean cancel(boolean mayInterruptIfRunning)
           
 SyncReply get()
           
 SyncReply get(long timeout, java.util.concurrent.TimeUnit unit)
           
protected  int getConnectionGeneration()
          Get the connection generation for this future
protected  int getXid()
          Get the xid for this message
 boolean isCancelled()
           
 boolean isDone()
           
protected  void setReply(SyncReply reply)
          Set the reply message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteSyncFuture

public RemoteSyncFuture(int xid,
                        int connectionGeneration)
Method Detail

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 -