GigaSpaces XAP 7.1 API

org.openspaces.remoting
Class SyncRemoteFuture<T>

java.lang.Object
  extended by org.openspaces.remoting.SyncRemoteFuture<T>
All Implemented Interfaces:
Future<T>

public class SyncRemoteFuture<T>
extends Object
implements Future<T>

A Space remoting future implementation.

Author:
kimchy

Constructor Summary
SyncRemoteFuture(Exception e)
           
SyncRemoteFuture(T result)
           
 
Method Summary
 boolean cancel(boolean mayInterruptIfRunning)
           
 T get()
           
 T get(long timeout, TimeUnit unit)
           
 boolean isCancelled()
           
 boolean isDone()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyncRemoteFuture

public SyncRemoteFuture(T result)

SyncRemoteFuture

public SyncRemoteFuture(Exception e)
Method Detail

cancel

public boolean cancel(boolean mayInterruptIfRunning)
Specified by:
cancel in interface Future<T>

isCancelled

public boolean isCancelled()
Specified by:
isCancelled in interface Future<T>

isDone

public boolean isDone()
Specified by:
isDone in interface Future<T>

get

public T get()
      throws InterruptedException,
             ExecutionException
Specified by:
get in interface Future<T>
Throws:
InterruptedException
ExecutionException

get

public T get(long timeout,
             TimeUnit unit)
      throws InterruptedException,
             ExecutionException,
             TimeoutException
Specified by:
get in interface Future<T>
Throws:
InterruptedException
ExecutionException
TimeoutException

GigaSpaces XAP 7.1 API

Copyright © GigaSpaces.