Class Cleaner
- java.lang.Object
-
- com.couchbase.transactions.cleanup.Cleaner
-
- Direct Known Subclasses:
CleanerMock
@Internal public class Cleaner extends java.lang.Object
Handles cleaning up expired/lost transactions.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Optional<java.time.Duration>
timeBeforeRehandlingFailedCleanupDefault
-
Constructor Summary
Constructors Constructor Description Cleaner(MergedTransactionConfig config, ClusterData clusterData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected reactor.core.publisher.Mono<java.lang.Integer>
beforeAtrGet(java.lang.String id)
protected reactor.core.publisher.Mono<java.lang.Integer>
beforeAtrRemove()
protected reactor.core.publisher.Mono<java.lang.Integer>
beforeCommitDoc(java.lang.String id)
protected reactor.core.publisher.Mono<java.lang.Integer>
beforeDocGet(java.lang.String id)
protected reactor.core.publisher.Mono<java.lang.Integer>
beforeRemoveDoc(java.lang.String id)
protected reactor.core.publisher.Mono<java.lang.Integer>
beforeRemoveDocStagedForRemoval(java.lang.String id)
protected reactor.core.publisher.Mono<java.lang.Integer>
beforeRemoveLinks(java.lang.String id)
reactor.core.publisher.Mono<TransactionCleanupAttempt>
cleanupATREntry(com.couchbase.client.java.ReactiveCollection atrCollection, java.lang.String atrId, java.lang.String attemptId, ATREntry atrEntry, boolean isRegularCleanup)
Kept purely for backwards compatibility with FIT performer.reactor.core.publisher.Mono<TransactionCleanupAttempt>
performCleanup(CleanupRequest req, boolean isRegularCleanup, SpanWrapper pspan)
java.time.Duration
timeBeforeRehandlingFailedCleanup()
-
-
-
Constructor Detail
-
Cleaner
public Cleaner(MergedTransactionConfig config, ClusterData clusterData)
-
-
Method Detail
-
timeBeforeRehandlingFailedCleanup
public java.time.Duration timeBeforeRehandlingFailedCleanup()
-
cleanupATREntry
public reactor.core.publisher.Mono<TransactionCleanupAttempt> cleanupATREntry(com.couchbase.client.java.ReactiveCollection atrCollection, java.lang.String atrId, java.lang.String attemptId, ATREntry atrEntry, boolean isRegularCleanup)
Kept purely for backwards compatibility with FIT performer.
-
performCleanup
public reactor.core.publisher.Mono<TransactionCleanupAttempt> performCleanup(CleanupRequest req, boolean isRegularCleanup, @Nullable SpanWrapper pspan)
-
beforeCommitDoc
protected reactor.core.publisher.Mono<java.lang.Integer> beforeCommitDoc(java.lang.String id)
-
beforeDocGet
protected reactor.core.publisher.Mono<java.lang.Integer> beforeDocGet(java.lang.String id)
-
beforeRemoveDocStagedForRemoval
protected reactor.core.publisher.Mono<java.lang.Integer> beforeRemoveDocStagedForRemoval(java.lang.String id)
-
beforeRemoveDoc
protected reactor.core.publisher.Mono<java.lang.Integer> beforeRemoveDoc(java.lang.String id)
-
beforeAtrGet
protected reactor.core.publisher.Mono<java.lang.Integer> beforeAtrGet(java.lang.String id)
-
beforeAtrRemove
protected reactor.core.publisher.Mono<java.lang.Integer> beforeAtrRemove()
-
beforeRemoveLinks
protected reactor.core.publisher.Mono<java.lang.Integer> beforeRemoveLinks(java.lang.String id)
-
-