public final class RepositoryCursor extends SingleProducerCursor
SingleProducerCursor
cursor which adds some functionality required by the repository.current, finalPosition, stayBehinds, waitStrategy
Modifier | Constructor and Description |
---|---|
protected |
RepositoryCursor(int bufferSize,
WaitStrategy waitStrategy,
RepositoryStatistics statistics) |
Modifier and Type | Method and Description |
---|---|
boolean |
publish(long position)
Publish the supplied position, making it available for consumers.
|
claim, claim, claimUpTo, complete, createGarbageCollectingConsumer, getBufferSize, getCurrent, getHighestPublishedPosition, ignore, isComplete, newBarrier, newPointer, positionOfSlowestConsumer, positionOfSlowestPointer, signalConsumers, stayBehind
protected RepositoryCursor(int bufferSize, WaitStrategy waitStrategy, RepositoryStatistics statistics)
public boolean publish(long position)
Cursor
publish
in interface Cursor
publish
in class SingleProducerCursor
position
- the position that is now available for consumersCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.