|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjava.util.concurrent.atomic.AtomicReference<V>
V
- ÀÌ ÂüÁ¶¿¡ ÀÇÇØ ÂüÁ¶µÇ´Â °´Ã¼ÀÇ ÇüÅÂpublic class AtomicReference<V>
¿øÀÚÀûÀÎ °»½ÅÀÌ °¡´ÉÇÑ °´Ã¼ ÂüÁ¶ÀÔ´Ï´Ù. ¿øÀÚ º¯¼öÀÇ ÇÁ·ÎÆÛƼÀÇÀÚ¼¼ÇÑ ³»¿ëÀº java.util.concurrent.atomic
ÆÐŰÁö »ç¾çÀ» ÂüÁ¶ÇϽʽÿÀ.
»ý¼ºÀÚ °³¿ä | |
---|---|
AtomicReference ()
ÃʱⰪ nullÀ» »ç¿ëÇØ, »õ·Î¿î AtomicReference¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
|
AtomicReference (V initialValue)
ÁöÁ¤µÈ ÃʱⰪÀ» »ç¿ëÇØ, »õ·Î¿î AtomicReference¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
boolean |
compareAndSet (V expect,
V update)
¡¸ÇöÀçÀÇ °ª == ¿¹»óµÇ´Â °ª¡¹ÀÎ °æ¿ì, °ªÀÌ ÁöÁ¤µÈ °»½ÅÄ¡¿¡ ¿øÀÚÀûÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù. |
V |
get ()
ÇöÀçÀÇ °ªÀ» ÃëµæÇÕ´Ï´Ù. |
V |
getAndSet (V newValue)
ÁöÁ¤µÈ °ªÀ¸·Î ¼³Á¤ÇØ, ÀÌÀüÀÇ °ªÀ» ¸®ÅÏÇÕ´Ï´Ù. |
void |
set (V newValue)
ÁöÁ¤µÈ °ªÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù. |
String |
toString ()
ÇöÀç°¡ÀÇ Ä³¸¯ÅÍ ¶óÀΠǥ±â¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
boolean |
weakCompareAndSet (V expect,
V update)
¡¸ÇöÀçÀÇ °ª == ¿¹»óµÇ´Â °ª¡¹ÀÎ °æ¿ì, °ªÀÌ ÁöÁ¤µÈ °»½ÅÄ¡¿¡ ¿øÀÚÀûÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù. |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
»ý¼ºÀÚ »ó¼¼ |
---|
public AtomicReference(V initialValue)
initialValue
- ÃʱⰪ
public AtomicReference()
¸Þ¼µåÀÇ »ó¼¼ |
---|
public final V get()
public final void set(V newValue)
newValue
- »õ·Î¿î °ªpublic final boolean compareAndSet(V expect, V update)
expect
- ¿¹»óµÇ´Â °ªupdate
- »õ·Î¿î °ª
public final boolean weakCompareAndSet(V expect, V update)
expect
- ¿¹»óµÇ´Â °ªupdate
- »õ·Î¿î °ª
public final V getAndSet(V newValue)
newValue
- »õ·Î¿î °ª
public String toString()
Object
³»ÀÇ toString
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.