R - public class OperationResultImpl<R> extends java.lang.Object implements OperationResult<R>
OperationResult
Tracks operation attempts, operation pinned host and latency associated with the operation.| Constructor and Description |
|---|
OperationResultImpl(Host host,
R result,
long latency) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAttemptsCount() |
Host |
getHost() |
long |
getLatency() |
long |
getLatency(java.util.concurrent.TimeUnit units) |
R |
getResult() |
void |
setAttemptsCount(int count)
Set the number of attempts executing this connection
|
public Host getHost()
getHost in interface OperationResult<R>public R getResult()
getResult in interface OperationResult<R>public long getLatency()
getLatency in interface OperationResult<R>public long getLatency(java.util.concurrent.TimeUnit units)
getLatency in interface OperationResult<R>public int getAttemptsCount()
getAttemptsCount in interface OperationResult<R>public void setAttemptsCount(int count)
OperationResultsetAttemptsCount in interface OperationResult<R>