DBZ-8054 Formatting

This commit is contained in:
Jeremy Ford 2024-07-29 21:08:27 -04:00 committed by Chris Cranford
parent 76aa135c0c
commit 41a817828d
2 changed files with 6 additions and 6 deletions

View File

@ -1546,7 +1546,7 @@ protected void abandonTransactionOverEventThreshold(T transaction) {
metrics.incrementOversizedTransactionCount();
}
//this implementation is different
// this implementation is different
@Override
public void abandonTransactions(Duration retention) throws InterruptedException {
if (!Duration.ZERO.equals(retention)) {

View File

@ -97,7 +97,7 @@ protected boolean isRecentlyProcessed(String transactionId) {
return getProcessedTransactionsCache().containsKey(transactionId);
}
//from EmbeddedInfinispanLogMinerEventProcessor, impl is different
// from EmbeddedInfinispanLogMinerEventProcessor, impl is different
@Override
protected Scn getTransactionCacheMinimumScn() {
return getTransactionCache().streamAndReturn(stream -> stream.map(LogMinerCache.Entry::getValue)
@ -106,20 +106,20 @@ protected Scn getTransactionCacheMinimumScn() {
.orElse(Scn.NULL));
}
//from EmbeddedInfinispanLogMinerEventProcessor, impl is different
// from EmbeddedInfinispanLogMinerEventProcessor, impl is different
protected Optional<T> getOldestTransactionInCache() {
return getTransactionCache().streamAndReturn(stream -> stream.map(LogMinerCache.Entry::getValue)
.min(this::oldestTransactionComparison));
}
//from EmbeddedInfinispanLogMinerEventProcessor, impl is different
// from EmbeddedInfinispanLogMinerEventProcessor, impl is different
@Override
protected String getFirstActiveTransactionKey() {
return getTransactionCache()
.streamAndReturn(stream -> stream.map(LogMinerCache.Entry::getKey).findFirst()).orElse(null);
}
//this impl is different
// this impl is different
@Override
protected void removeEventWithRowId(LogMinerEventRow row) {
// locate the events based solely on XIDUSN and XIDSLT.
@ -179,7 +179,7 @@ protected boolean hasSchemaChangeBeenSeen(LogMinerEventRow row) {
return getSchemaChangesCache().containsKey(row.getScn().toString());
}
//different from AbstractInfinispanLogMinerEventProcessor
// different from AbstractInfinispanLogMinerEventProcessor
@Override
protected T getAndRemoveTransactionFromCache(String transactionId) {
return getTransactionCache().remove(transactionId);