R - public class CqlOperationResultImpl<R>
extends java.lang.Object
implements com.netflix.astyanax.connectionpool.OperationResult<R>
OperationResult that tracks some basic info for every operation execution, such as
1. The host that was used for the operation
2. The operation attempt count
3. The encapsulated result
4. The overall latency for the operation.| Constructor and Description |
|---|
CqlOperationResultImpl(com.datastax.driver.core.ResultSet rs,
R result) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAttemptsCount() |
com.netflix.astyanax.connectionpool.Host |
getHost() |
long |
getLatency() |
long |
getLatency(java.util.concurrent.TimeUnit units) |
R |
getResult() |
void |
setAttemptsCount(int count) |
public CqlOperationResultImpl(com.datastax.driver.core.ResultSet rs,
R result)
public com.netflix.astyanax.connectionpool.Host getHost()
getHost in interface com.netflix.astyanax.connectionpool.OperationResult<R>public R getResult()
getResult in interface com.netflix.astyanax.connectionpool.OperationResult<R>public long getLatency()
getLatency in interface com.netflix.astyanax.connectionpool.OperationResult<R>public long getLatency(java.util.concurrent.TimeUnit units)
getLatency in interface com.netflix.astyanax.connectionpool.OperationResult<R>public int getAttemptsCount()
getAttemptsCount in interface com.netflix.astyanax.connectionpool.OperationResult<R>public void setAttemptsCount(int count)
setAttemptsCount in interface com.netflix.astyanax.connectionpool.OperationResult<R>