public class TrailingPointer extends Pointer implements DependentOnPointers
INITIAL_VALUE| Constructor and Description |
|---|
TrailingPointer(long initialValue,
Pointer... stayBehinds) |
TrailingPointer(Pointer... stayBehinds) |
| Modifier and Type | Method and Description |
|---|---|
long |
get() |
boolean |
ignore(Pointer pointer)
Ignore the specified pointer that cursor had previously
stayed behind. |
void |
stayBehind(Pointer... pointers)
Ensure that this cursor always remains behind the specified pointer.
|
String |
toString() |
incrementAndGet, setpublic TrailingPointer(Pointer... stayBehinds)
public TrailingPointer(long initialValue,
Pointer... stayBehinds)
public void stayBehind(Pointer... pointers)
DependentOnPointersstayBehind in interface DependentOnPointerspointers - the pointers that this cursor may not run past in the ring bufferpublic boolean ignore(Pointer pointer)
DependentOnPointersstayed behind. This should be called
when the supplied pointer is removed from the ring buffer.ignore in interface DependentOnPointerspointer - the pointer that this cursor may no longer depend uponCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.