@Test public void testRateLimitingUsedInWriteOnlyTxCreation() { try (TransactionChainProxy txChainProxy = new TransactionChainProxy(mockComponentFactory, historyId)) { txChainProxy.newWriteOnlyTransaction(); verify(mockActorContext, times(1)).acquireTxCreationPermit(); } }
@Override public DOMStoreWriteTransaction newWriteOnlyTransaction() { getActorUtils().acquireTxCreationPermit(); return allocateWriteTransaction(TransactionType.WRITE_ONLY); }
TransactionChainProxy extends AbstractTransactionContextFactory<LocalTransactionChain> implements DOMStoreTransactionChain { @Override public DOMStoreWriteTransaction newWriteOnlyTransaction() { getActorUtils().acquireTxCreationPermit(); return allocateWriteTransaction(TransactionType.WRITE_ONLY); } }
TransactionChainProxy extends AbstractTransactionContextFactory<LocalTransactionChain> implements DOMStoreTransactionChain { @Override public DOMStoreWriteTransaction newWriteOnlyTransaction() { getActorUtils().acquireTxCreationPermit(); return allocateWriteTransaction(TransactionType.WRITE_ONLY); } TransactionChainProxy(final TransactionContextFactory parent, final LocalHistoryIdentifier historyId); }
TransactionChainProxy extends AbstractTransactionContextFactory<LocalTransactionChain> implements DOMStoreTransactionChain { @Override public DOMStoreWriteTransaction newWriteOnlyTransaction() { getActorUtils().acquireTxCreationPermit(); return allocateWriteTransaction(TransactionType.WRITE_ONLY); } TransactionChainProxy(final TransactionContextFactory parent, final LocalHistoryIdentifier historyId); @Override DOMStoreReadTransaction newReadOnlyTransaction(); @Override DOMStoreReadWriteTransaction newReadWriteTransaction(); @Override DOMStoreWriteTransaction newWriteOnlyTransaction(); @Override void close(); }
TransactionChainProxy extends AbstractTransactionContextFactory<LocalTransactionChain> implements DOMStoreTransactionChain { @Override public DOMStoreWriteTransaction newWriteOnlyTransaction() { getActorUtils().acquireTxCreationPermit(); return allocateWriteTransaction(TransactionType.WRITE_ONLY); } TransactionChainProxy(final TransactionContextFactory parent, final LocalHistoryIdentifier historyId); @Override DOMStoreReadTransaction newReadOnlyTransaction(); @Override DOMStoreReadWriteTransaction newReadWriteTransaction(); @Override DOMStoreWriteTransaction newWriteOnlyTransaction(); @Override void close();  }