Class PageSubscriptionCounterImpl
java.lang.Object
org.apache.activemq.artemis.core.paging.cursor.impl.BasePagingCounter
org.apache.activemq.artemis.core.paging.cursor.impl.PageSubscriptionCounterImpl
- All Implemented Interfaces:
PageSubscriptionCounter
This class will encapsulate the persistent counters for the PagingSubscription
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyIncrementOnTX(Transaction tx, int add, long size) This method will install the TXsvoiddelete()voiddelete(Transaction tx) voidlonglonglonggetValue()longvoidincrement(Transaction tx, int add, long size) voidloadInc(long id, int add, long size) voidloadValue(long recordID, long value, long size) voidvoidThis will process the reloadsetSubscription(PageSubscription subscription) voidsnapshot()This method should always be called from a single threaded executorMethods inherited from class org.apache.activemq.artemis.core.paging.cursor.impl.BasePagingCounter
isRebuilding
-
Constructor Details
-
PageSubscriptionCounterImpl
-
-
Method Details
-
markRebuilding
public void markRebuilding()- Specified by:
markRebuildingin interfacePageSubscriptionCounter- Overrides:
markRebuildingin classBasePagingCounter
-
finishRebuild
public void finishRebuild()- Specified by:
finishRebuildin interfacePageSubscriptionCounter- Overrides:
finishRebuildin classBasePagingCounter
-
getValueAdded
public long getValueAdded() -
getValue
public long getValue() -
getPersistentSizeAdded
public long getPersistentSizeAdded() -
getPersistentSize
public long getPersistentSize() -
increment
- Throws:
Exception
-
applyIncrementOnTX
This method will install the TXs -
loadValue
public void loadValue(long recordID, long value, long size) -
delete
- Throws:
Exception
-
delete
- Throws:
Exception
-
loadInc
public void loadInc(long id, int add, long size) -
processReload
public void processReload()Description copied from interface:PageSubscriptionCounterThis will process the reload -
snapshot
public void snapshot()This method should always be called from a single threaded executor -
setSubscription
-