com.netflix.astyanax.connectionpool
Interface OperationResult<R>

All Known Implementing Classes:
OperationResultImpl

public interface OperationResult<R>


Method Summary
 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
 

Method Detail

getHost

Host getHost()
Returns:
Get the host on which the operation was performed

getResult

R getResult()
Returns:
Get the result data

getLatency

long getLatency()
Returns:
Return the length of time to perform the operation. Does not include connection pool overhead. This time is in nanoseconds

getLatency

long getLatency(java.util.concurrent.TimeUnit units)
Parameters:
units -
Returns:
Return the length of time to perform the operation to the remote service. Does not include connection pool overhead.

getAttemptsCount

int getAttemptsCount()
Returns:
Return the number of times the operation had to be retried. This includes retries for aborted connections.

setAttemptsCount

void setAttemptsCount(int count)
Set the number of attempts executing this connection

Parameters:
count -