com.netflix.curator.framework.recipes.atomic
Interface AtomicValue<T>


public interface AtomicValue<T>

Abstracts a value returned from one of the Atomics


Method Summary
 AtomicStats getStats()
          Returns debugging stats about the operation
 T postValue()
          Returns the value of the counter after to the operation
 T preValue()
          Returns the value of the counter prior to the operation
 boolean succeeded()
          MUST be checked. Returns true if the operation succeeded.
 

Method Detail

succeeded

boolean succeeded()
MUST be checked. Returns true if the operation succeeded. If false is returned, the operation failed and the atomic was not updated.

Returns:
true/false

preValue

T preValue()
Returns the value of the counter prior to the operation

Returns:
pre-operation value

postValue

T postValue()
Returns the value of the counter after to the operation

Returns:
post-operation value

getStats

AtomicStats getStats()
Returns debugging stats about the operation

Returns:
stats


Copyright © 2012. All Rights Reserved.