Modifier and Type | Method and Description |
---|---|
static <T> void |
add(T holder,
AtomicReferenceFieldUpdater<T,Pointer[]> updater,
Cursor cursor,
Pointer... pointersToAdd)
Atomically add the specified
Pointer instance(s) to an array known to the given updator. |
static long |
getMinimum(Pointer[] pointers,
long minimum) |
static <T> boolean |
remove(T holder,
AtomicReferenceFieldUpdater<T,Pointer[]> updater,
Pointer pointer)
Atomically remove the specified
Pointer instance from an array known to the given updator. |
public static long getMinimum(Pointer[] pointers, long minimum)
public static <T> void add(T holder, AtomicReferenceFieldUpdater<T,Pointer[]> updater, Cursor cursor, Pointer... pointersToAdd)
Pointer
instance(s) to an array known to the given updator.holder
- the object that holds the array; may not be nullupdater
- the updator of the array; may not be nullcursor
- the cursor that the pointers will follow; may be null if none of the pointers are to be changedpointersToAdd
- the pointer(s) to be added to the existing pointerspublic static <T> boolean remove(T holder, AtomicReferenceFieldUpdater<T,Pointer[]> updater, Pointer pointer)
Pointer
instance from an array known to the given updator.holder
- the object that holds the array; may not be nullupdater
- the updator of the array; may not be nullpointer
- the pointer to be removed from the existing pointersCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.