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

All Known Implementing Classes:
OperationResultImpl

public interface OperationResult<R>


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
 

Method Detail

getHost

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

Returns:

getResult

R getResult()
Get the result data

Returns:

getLatency

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

Returns:

getLatency

long getLatency(TimeUnit units)
Return the length of time to perform the operation. Does not include connection pool overhead.

Parameters:
units -
Returns:

getAttemptsCount

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

Returns:

setAttemptsCount

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

Parameters:
count -


Copyright © 2012. All Rights Reserved.