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) |
boolean |
contains(PagedReference ref) |
void |
destroy() |
void |
disableAutoCleanup() |
void |
enableAutoCleanup() |
void |
flushExecutors()
wait all the scheduled runnables to finish their current execution
|
PageSubscriptionCounter |
getCounter() |
long |
getDeliveredCount() |
long |
getDeliveredSize() |
ArtemisExecutor |
getExecutor() |
long |
getFirstPage() |
long |
getId() |
long |
getMessageCount() |
PagingStore |
getPagingStore() |
long |
getPersistentSize() |
Queue |
getQueue() |
void |
incrementDeliveredSize(long size) |
boolean |
isComplete(long page) |
boolean |
isPaging()
Used as a delegate method to
PagingStore.isPaging() |
boolean |
isPersistent() |
LinkedListIterator<PagedReference> |
iterator() |
LinkedListIterator<PagedReference> |
iterator(boolean jumpRemoves) |
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(PageIterator iterator,
PagePosition position)
To be used on redeliveries
|
void |
reloadACK(PagePosition position) |
boolean |
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 |
removePendingDelivery(PagePosition position) |
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 getPersistentSize()
long getId()
boolean isPersistent()
boolean isPaging()
PagingStore.isPaging()
LinkedListIterator<PagedReference> iterator()
LinkedListIterator<PagedReference> iterator(boolean jumpRemoves)
void scheduleCleanupCheck()
void onPageModeCleared(Transaction tx) throws Exception
Exception
void disableAutoCleanup()
void enableAutoCleanup()
void ack(PagedReference ref) throws Exception
Exception
boolean contains(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
- boolean 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)
position
- void addPendingDelivery(PagePosition position)
void redeliver(PageIterator iterator, PagePosition position)
position
- void printDebug()
boolean isComplete(long page)
page
- void flushExecutors()
void setQueue(Queue queue)
Queue getQueue()
PagedMessage queryMessage(PagePosition pos)
pos
- ArtemisExecutor getExecutor()
void onDeletePage(Page deletedPage) throws Exception
deletedPage
- Exception
long getDeliveredCount()
long getDeliveredSize()
void incrementDeliveredSize(long size)
void removePendingDelivery(PagePosition position)
Copyright © 2019 JBoss by Red Hat. All rights reserved.