public interface

OperationResult

com.netflix.astyanax.connectionpool.OperationResult<R>
Known Indirect Subclasses

Summary

Public Methods
abstract int getAttemptsCount()
Return the number of times the operation had to be retried.
abstract Host getHost()
Get the host on which the operation was performed
abstract long getLatency(TimeUnit units)
Return the length of time to perform the operation.
abstract long getLatency()
Return the length of time to perform the operation.
abstract R getResult()
Get the result data
abstract void setAttemptsCount(int count)
Set the number of attempts executing this connection

Public Methods

public abstract int getAttemptsCount ()

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

public abstract Host getHost ()

Get the host on which the operation was performed

public abstract long getLatency (TimeUnit units)

Return the length of time to perform the operation. Does not include connection pool overhead.

public abstract long getLatency ()

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

public abstract R getResult ()

Get the result data

public abstract void setAttemptsCount (int count)

Set the number of attempts executing this connection