public class ExecutionResult<T> extends Object implements ResultStatus
| Modifier and Type | Field and Description |
|---|---|
protected static String |
BASE_MSG_FORMAT |
| Constructor and Description |
|---|
ExecutionResult(T value,
long execTime,
CassandraHost cassandraHost) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
formatMessage(String resultName,
String query) |
T |
get() |
long |
getExecutionTimeMicro()
Execution time is actually recorded in nanos, so we divide this by 1000
make the number more sensible
|
long |
getExecutionTimeNano() |
CassandraHost |
getHostUsed()
The cassandra host that was actually used to execute the operation
|
String |
toString() |
protected static final String BASE_MSG_FORMAT
public ExecutionResult(T value, long execTime, CassandraHost cassandraHost)
public T get()
public long getExecutionTimeNano()
getExecutionTimeNano in interface ResultStatuspublic long getExecutionTimeMicro()
getExecutionTimeMicro in interface ResultStatuspublic CassandraHost getHostUsed()
getHostUsed in interface ResultStatusCopyright © 2014. All Rights Reserved.