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, set
public TrailingPointer(Pointer... stayBehinds)
public TrailingPointer(long initialValue, Pointer... stayBehinds)
public void stayBehind(Pointer... pointers)
DependentOnPointers
stayBehind
in interface DependentOnPointers
pointers
- the pointers that this cursor may not run past in the ring bufferpublic boolean ignore(Pointer pointer)
DependentOnPointers
stayed behind
. This should be called
when the supplied pointer is removed from the ring buffer.ignore
in interface DependentOnPointers
pointer
- the pointer that this cursor may no longer depend uponCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.