public class TcpStorageFuture extends Object implements StorageFuture, StorageResult
| Constructor and Description |
|---|
TcpStorageFuture(com.ibm.narpc.NaRPCFuture<TcpStorageRequest,TcpStorageResponse> future,
int len) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
StorageResult |
get() |
StorageResult |
get(long timeout,
TimeUnit unit) |
int |
getLen() |
boolean |
isCancelled() |
boolean |
isDone() |
boolean |
isSynchronous() |
public TcpStorageFuture(com.ibm.narpc.NaRPCFuture<TcpStorageRequest,TcpStorageResponse> future, int len)
public boolean cancel(boolean mayInterruptIfRunning)
cancel in interface Future<StorageResult>public boolean isCancelled()
isCancelled in interface Future<StorageResult>public boolean isDone()
isDone in interface Future<StorageResult>public StorageResult get() throws InterruptedException, ExecutionException
get in interface Future<StorageResult>InterruptedExceptionExecutionExceptionpublic StorageResult get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<StorageResult>InterruptedExceptionExecutionExceptionTimeoutExceptionpublic boolean isSynchronous()
isSynchronous in interface StorageFuturepublic int getLen()
getLen in interface StorageResultCopyright © 2018 The Apache Software Foundation. All rights reserved.