Brooklyn

brooklyn.util.javalang
[Java] Class AtomicReferences

java.lang.Object
  brooklyn.util.javalang.AtomicReferences

public class AtomicReferences

Method Summary
static boolean setIfDifferent(java.util.concurrent.atomic.AtomicBoolean ref, boolean value)

sets the atomic reference to the given value, and returns whether there is any change

static boolean setIfDifferent(java.util.concurrent.atomic.AtomicReference ref, java.lang.Object value)

sets the atomic reference to the given value, and returns whether there is any change

static Supplier supplier(java.util.concurrent.atomic.AtomicReference ref)

returns the given atomic as a Supplier

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Method Detail

setIfDifferent

public static boolean setIfDifferent(java.util.concurrent.atomic.AtomicBoolean ref, boolean value)
sets the atomic reference to the given value, and returns whether there is any change


setIfDifferent

public static boolean setIfDifferent(java.util.concurrent.atomic.AtomicReference ref, java.lang.Object value)
sets the atomic reference to the given value, and returns whether there is any change


supplier

public static Supplier supplier(java.util.concurrent.atomic.AtomicReference ref)
returns the given atomic as a Supplier


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.