public class CompoundResultSetFuture
extends com.google.common.util.concurrent.AbstractFuture<com.datastax.driver.core.ResultSet>
CompoundResultSetFuture class defines a result set which is
designed to return a compound results of multiple result set futures which
are created from a sequence of select statements and requires to be combined
together.| Constructor and Description |
|---|
CompoundResultSetFuture(List<com.datastax.driver.core.ResultSetFuture> futures,
StatementManagerImpl mgr)
Instantiates a new
CompoundResultSetFuture object. |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(Runnable listener,
Executor exec) |
boolean |
cancel(boolean mayInterruptIfRunning) |
com.datastax.driver.core.ResultSet |
get() |
com.datastax.driver.core.ResultSet |
get(long timeout,
TimeUnit unit) |
com.datastax.driver.core.ResultSet |
getUninterruptibly() |
com.datastax.driver.core.ResultSet |
getUninterruptibly(long arg0,
TimeUnit arg1) |
boolean |
isCancelled() |
boolean |
isDone() |
void |
onException(com.datastax.driver.core.Connection arg0,
Exception arg1,
long arg2,
int arg3) |
void |
onSet(com.datastax.driver.core.Connection arg0,
com.datastax.driver.core.Message.Response arg1,
com.datastax.driver.core.ExecutionInfo arg2,
com.datastax.driver.core.Statement arg3,
long arg4) |
void |
onSet(com.datastax.driver.core.Connection arg0,
com.datastax.driver.core.Message.Response arg1,
long arg2,
int arg3) |
boolean |
onTimeout(com.datastax.driver.core.Connection arg0,
long arg1,
int arg2) |
void |
register(com.datastax.driver.core.RequestHandler arg0) |
com.datastax.driver.core.Message.Request |
request() |
int |
retryCount() |
public CompoundResultSetFuture(List<com.datastax.driver.core.ResultSetFuture> futures, StatementManagerImpl mgr)
CompoundResultSetFuture object.futures - the list of result set futures to compound togethermgr - the statement managerNullPointerException - if mgr, statements
or any of the result set futures are nullpublic boolean isDone()
public boolean isCancelled()
isCancelled in interface Future<com.datastax.driver.core.ResultSet>isCancelled in class com.google.common.util.concurrent.AbstractFuture<com.datastax.driver.core.ResultSet>AbstractFuture.isCancelled()public boolean cancel(boolean mayInterruptIfRunning)
public com.datastax.driver.core.ResultSet get(long timeout,
TimeUnit unit)
throws InterruptedException,
TimeoutException,
ExecutionException
get in interface Future<com.datastax.driver.core.ResultSet>get in class com.google.common.util.concurrent.AbstractFuture<com.datastax.driver.core.ResultSet>InterruptedExceptionTimeoutExceptionExecutionExceptionAbstractFuture.get(long, java.util.concurrent.TimeUnit)public com.datastax.driver.core.ResultSet get()
throws InterruptedException,
ExecutionException
get in interface Future<com.datastax.driver.core.ResultSet>get in class com.google.common.util.concurrent.AbstractFuture<com.datastax.driver.core.ResultSet>InterruptedExceptionExecutionExceptionAbstractFuture.get()public void addListener(Runnable listener, Executor exec)
addListener in interface com.google.common.util.concurrent.ListenableFuture<com.datastax.driver.core.ResultSet>addListener in class com.google.common.util.concurrent.AbstractFuture<com.datastax.driver.core.ResultSet>AbstractFuture.addListener(Runnable, java.util.concurrent.Executor)public void register(com.datastax.driver.core.RequestHandler arg0)
public com.datastax.driver.core.Message.Request request()
public void onSet(com.datastax.driver.core.Connection arg0,
com.datastax.driver.core.Message.Response arg1,
com.datastax.driver.core.ExecutionInfo arg2,
com.datastax.driver.core.Statement arg3,
long arg4)
public void onSet(com.datastax.driver.core.Connection arg0,
com.datastax.driver.core.Message.Response arg1,
long arg2,
int arg3)
public void onException(com.datastax.driver.core.Connection arg0,
Exception arg1,
long arg2,
int arg3)
public boolean onTimeout(com.datastax.driver.core.Connection arg0,
long arg1,
int arg2)
public com.datastax.driver.core.ResultSet getUninterruptibly()
getUninterruptibly in interface com.datastax.driver.core.ResultSetFuturepublic com.datastax.driver.core.ResultSet getUninterruptibly(long arg0,
TimeUnit arg1)
throws TimeoutException
getUninterruptibly in interface com.datastax.driver.core.ResultSetFutureTimeoutExceptionpublic int retryCount()
Copyright (C) 2015-2017 The Helenus Driver Project Authors.