public class

OperationResultImpl

extends Object
implements OperationResult<R>
java.lang.Object
   ↳ com.netflix.astyanax.connectionpool.impl.OperationResultImpl<R>

Summary

Public Constructors
OperationResultImpl(Host host, R result, long latency)
Public Methods
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(TimeUnit units)
Return the length of time to perform the operation.
long getLatency()
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
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.netflix.astyanax.connectionpool.OperationResult

Public Constructors

public OperationResultImpl (Host host, R result, long latency)

Public Methods

public int getAttemptsCount ()

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

public Host getHost ()

Get the host on which the operation was performed

public long getLatency (TimeUnit units)

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

public long getLatency ()

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

public R getResult ()

Get the result data

public void setAttemptsCount (int count)

Set the number of attempts executing this connection