com.sun.xml.ws.commons
Class VolatileReference<V>
java.lang.Object
com.sun.xml.ws.commons.VolatileReference<V>
- Type Parameters:
V - type of the wrapped variable
public final class VolatileReference<V>
- extends Object
This class is useful in case you need to pass a reference to a variable that
might have not been initialized yet. The referenced variable is volatile to
ensure that any change of the reference will get synchronized among threads.
- Author:
- Marek Potociar
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
value
public volatile V value
VolatileReference
public VolatileReference(V value)
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.