public interface PageSubscription
Modifier and Type | Method and Description |
---|---|
void |
ack(PagedReference ref) |
void |
ackTx(Transaction tx,
PagedReference position) |
void |
addPendingDelivery(PagePosition position) |
void |
bookmark(PagePosition position) |
void |
cleanupEntries(boolean completeDelete) |
void |
close() |
void |
confirmPosition(PagePosition ref) |
void |
confirmPosition(Transaction tx,
PagePosition position) |
void |
disableAutoCleanup() |
void |
enableAutoCleanup() |
void |
flushExecutors()
wait all the scheduled runnables to finish their current execution
|
PageSubscriptionCounter |
getCounter() |
Executor |
getExecutor() |
long |
getFirstPage() |
long |
getId() |
long |
getMessageCount() |
PagingStore |
getPagingStore() |
Queue |
getQueue() |
boolean |
isComplete(long page) |
boolean |
isPaging()
Used as a delegate method to pageStore.isPaging()
|
boolean |
isPersistent() |
LinkedListIterator<PagedReference> |
iterator() |
void |
lateDeliveryRollback(PagePosition position) |
void |
positionIgnored(PagePosition position)
To be called when the cursor decided to ignore a position.
|
void |
printDebug() |
void |
processReload() |
PagedMessage |
queryMessage(PagePosition pos)
To be used to requery the reference case the Garbage Collection removed it from the PagedReference as it's using WeakReferences
|
void |
redeliver(PagePosition position)
To be used on redeliveries
|
void |
reloadACK(PagePosition position) |
void |
reloadPreparedACK(Transaction tx,
PagePosition position)
To be used to avoid a redelivery of a prepared ACK after load
|
void |
scheduleCleanupCheck() |
void |
setQueue(Queue queue) |
void |
stop() |
PagingStore getPagingStore()
void stop()
void bookmark(PagePosition position) throws Exception
Exception
PageSubscriptionCounter getCounter()
long getMessageCount()
long getId()
boolean isPersistent()
boolean isPaging()
LinkedListIterator<PagedReference> iterator()
void scheduleCleanupCheck()
void disableAutoCleanup()
void enableAutoCleanup()
void ack(PagedReference ref) throws Exception
Exception
void confirmPosition(PagePosition ref) throws Exception
Exception
void ackTx(Transaction tx, PagedReference position) throws Exception
Exception
void confirmPosition(Transaction tx, PagePosition position) throws Exception
Exception
long getFirstPage()
void reloadACK(PagePosition position)
position
- void positionIgnored(PagePosition position)
position
- void lateDeliveryRollback(PagePosition position)
void reloadPreparedACK(Transaction tx, PagePosition position)
position
- void addPendingDelivery(PagePosition position)
void redeliver(PagePosition position)
position
- void printDebug()
boolean isComplete(long page)
minPage
- void flushExecutors()
void setQueue(Queue queue)
Queue getQueue()
PagedMessage queryMessage(PagePosition pos)
pos
- Executor getExecutor()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.