public class GarbageCollectingConsumer extends Object implements Runnable, AutoCloseable, DependentOnPointers
| Modifier and Type | Class and Description |
|---|---|
static interface |
GarbageCollectingConsumer.Collectable |
| Modifier and Type | Field and Description |
|---|---|
protected TrailingPointer |
trailingPointer |
| Constructor and Description |
|---|
GarbageCollectingConsumer(Cursor cursor,
Pointer cursorPointer,
WaitStrategy waitStrategy,
GarbageCollectingConsumer.Collectable collectable) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
ignore(Pointer pointer)
Ignore the specified pointer that cursor had previously
stayed behind. |
void |
run() |
void |
stayBehind(Pointer... pointers)
Ensure that this cursor always remains behind the specified pointer.
|
protected final TrailingPointer trailingPointer
public GarbageCollectingConsumer(Cursor cursor, Pointer cursorPointer, WaitStrategy waitStrategy, GarbageCollectingConsumer.Collectable collectable)
public void close()
close in interface AutoCloseablepublic 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 uponpublic void stayBehind(Pointer... pointers)
DependentOnPointersstayBehind in interface DependentOnPointerspointers - the pointers that this cursor may not run past in the ring bufferCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.