DBZ-8054 Formatting
This commit is contained in:
parent
76aa135c0c
commit
41a817828d
@ -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)) {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user