@Override public void reloadUpdate(final StorageManager storageManager, final PagingManager pagingManager, final Transaction tx, final int increment) throws Exception { UpdatePageTXOperation updt = internalUpdatePageManager(storageManager, pagingManager, tx, increment); updt.setStored(); }
@Override public boolean isRejectingMessages() { if (addressFullMessagePolicy != AddressFullMessagePolicy.BLOCK) { return false; } return rejectThreshold != AddressSettings.DEFAULT_ADDRESS_REJECT_THRESHOLD && getAddressSize() > rejectThreshold; }
@Override public void beforeCommit(final Transaction tx) throws Exception { syncStore(); storePageTX(tx); }
PageStoreFactoryTestable(PagingStoreFactoryNIO other) { this(other.getStorageManager(), other.getDirectory(), other.getSyncTimeout(), other.getScheduledExecutor(), other.getExecutorFactory(), other.isSyncNonTransactional(), other.getCritialErrorListener()); }
public void close() throws Exception { close(false); }
@Override public int compareTo(Page otherPage) { return otherPage.getPageId() - this.pageId; }
@Override public void beforePrepare(Transaction tx) throws Exception { storeUpdates(tx); }
@Override public void run() { debug(); } };
@Override public void storeUpdate(final StorageManager storageManager, final PagingManager pagingManager, final Transaction tx) throws Exception { internalUpdatePageManager(storageManager, pagingManager, tx, 1); }
@Override public boolean checkMemory(final Runnable runWhenAvailable) { return checkMemory(true, runWhenAvailable); }
@Override public void forceAnotherPage() throws Exception { openNewPage(); }
@Override public void onChange() { reapplySettings(); }
@Override public void run() { tick(); }
@Override public boolean isPaging() { AddressFullMessagePolicy policy = this.addressFullMessagePolicy; if (policy == AddressFullMessagePolicy.BLOCK) { return false; } if (policy == AddressFullMessagePolicy.FAIL) { return isFull(); } if (policy == AddressFullMessagePolicy.DROP) { return isFull(); } return paging; }
@Override public String toString() { return "PageCacheImpl::page=" + page.getPageId() + " numberOfMessages = " + messages.length; }
@Override public void beforePrepare(final Transaction tx) throws Exception { syncStore(); storePageTX(tx); }
@Override public void beforeCommit(Transaction tx) throws Exception { storeUpdates(tx); }
@Override public long getPageId() { return page.getPageId(); }
@Override public long getPageId() { return page.getPageId(); }