public class PageSubscriptionCounterImpl extends Object implements PageSubscriptionCounter
| Constructor and Description |
|---|
PageSubscriptionCounterImpl(StorageManager storage,
PageSubscription subscription,
Executor executor,
boolean persistent,
long subscriptionID) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInc(long id,
int variance,
long size) |
void |
applyIncrementOnTX(Transaction tx,
long recordID1,
int add,
long size)
This method will install the TXs
|
protected void |
cleanup()
This method should always be called from a single threaded executor
|
void |
cleanupNonTXCounters(long pageID)
Cleanup temporary page counters on non transactional paged messages
|
void |
delete() |
void |
delete(Transaction tx) |
long |
getPersistentSize() |
long |
getPersistentSizeAdded() |
long |
getValue() |
long |
getValueAdded() |
void |
increment(Transaction tx,
int add,
long size) |
void |
incrementProcessed(long id,
int add,
long size) |
void |
loadInc(long id,
int add,
long size) |
void |
loadValue(long recordID1,
long value1,
long size) |
void |
pendingCounter(Page page,
int increment,
long size)
This is used only on non transactional paging
|
void |
processReload()
This will process the reload
|
void |
setPersistent(boolean persistent)
used on testing only
|
public PageSubscriptionCounterImpl(StorageManager storage, PageSubscription subscription, Executor executor, boolean persistent, long subscriptionID)
public long getValueAdded()
getValueAdded in interface PageSubscriptionCounterpublic long getValue()
getValue in interface PageSubscriptionCounterpublic long getPersistentSizeAdded()
getPersistentSizeAdded in interface PageSubscriptionCounterpublic long getPersistentSize()
getPersistentSize in interface PageSubscriptionCounterpublic void pendingCounter(Page page, int increment, long size) throws Exception
pendingCounter in interface PageSubscriptionCounterpage - increment - Exceptionpublic void cleanupNonTXCounters(long pageID)
throws Exception
cleanupNonTXCounters in interface PageSubscriptionCounterpageID - Exceptionpublic void increment(Transaction tx, int add, long size) throws Exception
increment in interface PageSubscriptionCounterExceptionpublic void applyIncrementOnTX(Transaction tx, long recordID1, int add, long size)
applyIncrementOnTX in interface PageSubscriptionCountertx - recordID1 - add - public void loadValue(long recordID1,
long value1,
long size)
loadValue in interface PageSubscriptionCounterpublic void incrementProcessed(long id,
int add,
long size)
public void delete()
throws Exception
delete in interface PageSubscriptionCounterExceptionpublic void delete(Transaction tx) throws Exception
delete in interface PageSubscriptionCounterExceptionpublic void loadInc(long id,
int add,
long size)
loadInc in interface PageSubscriptionCounterpublic void processReload()
PageSubscriptionCounterprocessReload in interface PageSubscriptionCounterpublic void addInc(long id,
int variance,
long size)
addInc in interface PageSubscriptionCounterpublic void setPersistent(boolean persistent)
protected void cleanup()
Copyright © 2019 JBoss by Red Hat. All rights reserved.