|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netflix.astyanax.connectionpool.impl.OperationResultImpl<R>
public class OperationResultImpl<R>
Constructor Summary | |
---|---|
OperationResultImpl(Host host,
R result,
long latency)
|
Method Summary | |
---|---|
int |
getAttemptsCount()
Return the number of times the operation had to be retried. |
Host |
getHost()
Get the host on which the operation was performed |
long |
getLatency()
Return the length of time to perform the operation. |
long |
getLatency(TimeUnit units)
Return the length of time to perform the operation. |
R |
getResult()
Get the result data |
void |
setAttemptsCount(int count)
Set the number of attempts executing this connection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OperationResultImpl(Host host, R result, long latency)
Method Detail |
---|
public Host getHost()
OperationResult
getHost
in interface OperationResult<R>
public R getResult()
OperationResult
getResult
in interface OperationResult<R>
public long getLatency()
OperationResult
getLatency
in interface OperationResult<R>
public long getLatency(TimeUnit units)
OperationResult
getLatency
in interface OperationResult<R>
public int getAttemptsCount()
OperationResult
getAttemptsCount
in interface OperationResult<R>
public void setAttemptsCount(int count)
OperationResult
setAttemptsCount
in interface OperationResult<R>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |