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 |
confirmPosition(PagePosition ref) |
void |
confirmPosition(Transaction tx,
PagePosition position) |
void |
destroy() |
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
PagingStore.isPaging() |
boolean |
isPersistent() |
LinkedListIterator<PagedReference> |
iterator() |
void |
lateDeliveryRollback(PagePosition position) |
void |
notEmpty()
This is a callback to inform the PageSubscription that something was routed, so the empty flag can be cleared
|
void |
onDeletePage(Page deletedPage) |
void |
onPageModeCleared(Transaction tx) |
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 |
reloadPageCompletion(PagePosition position) |
void |
reloadPageInfo(long pageNr) |
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 notEmpty()
void bookmark(PagePosition position) throws Exception
Exception
PageSubscriptionCounter getCounter()
long getMessageCount()
long getId()
boolean isPersistent()
boolean isPaging()
PagingStore.isPaging()
LinkedListIterator<PagedReference> iterator()
void scheduleCleanupCheck()
void onPageModeCleared(Transaction tx) throws Exception
Exception
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 reloadPageCompletion(PagePosition position) throws Exception
Exception
void reloadPageInfo(long pageNr)
void positionIgnored(PagePosition position)
position
- void lateDeliveryRollback(PagePosition position)
void reloadPreparedACK(Transaction tx, PagePosition position) throws HornetQException
position
- HornetQException
void addPendingDelivery(PagePosition position)
void redeliver(PagePosition position)
position
- void printDebug()
boolean isComplete(long page)
page
- void flushExecutors()
void setQueue(Queue queue)
Queue getQueue()
PagedMessage queryMessage(PagePosition pos)
pos
- Executor getExecutor()
Copyright © 2018 JBoss by Red Hat. All rights reserved.