Class PageSubscriptionImpl.PageCursorInfo
java.lang.Object
org.apache.activemq.artemis.core.paging.cursor.impl.PageSubscriptionImpl.PageCursorInfo
- All Implemented Interfaces:
ConsumedPage
- Enclosing class:
- PageSubscriptionImpl
This will hold information about the pending ACKs towards a page.
This instance will be released as soon as the entire page is consumed, releasing the memory at that point The ref counts are increased also when a message is ignored for any reason.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddACK(PagePosition posACK) protected voidvoidclear()voidvoidforEachAck(BiConsumer<Integer, PagePosition> ackConsumer) io.netty.util.collection.IntObjectHashMapgetAcks()longintio.netty.util.collection.IntObjectHashMapvoidbooleanisAck(int messageNumber) booleanisDone()booleanbooleanisRemoved(int messageNr) voidloadACK(PagePosition posACK) voidremove(int messageNr) voidsetCompleteInfo(PagePosition completePage) voidtoString()
-
Method Details
-
isAck
public boolean isAck(int messageNumber) - Specified by:
isAckin interfaceConsumedPage
-
forEachAck
- Specified by:
forEachAckin interfaceConsumedPage
-
getAcks
public io.netty.util.collection.IntObjectHashMap getAcks() -
getRemovedReferences
public io.netty.util.collection.IntObjectHashMap getRemovedReferences() -
getCompletePageInformation
-
toString
-
clear
public void clear() -
setCompleteInfo
-
getCompleteInfo
-
isDone
public boolean isDone()- Specified by:
isDonein interfaceConsumedPage
-
isPendingDelete
public boolean isPendingDelete() -
setPendingDelete
public void setPendingDelete() -
getPageId
public long getPageId()- Specified by:
getPageIdin interfaceConsumedPage
-
incrementPendingTX
public void incrementPendingTX() -
decrementPendingTX
public void decrementPendingTX() -
isRemoved
public boolean isRemoved(int messageNr) -
remove
public void remove(int messageNr) -
addACK
-
loadACK
-
checkDone
protected void checkDone() -
getPendingTx
public int getPendingTx()
-