Class CleanupRequest
java.lang.Object
com.couchbase.client.core.transaction.cleanup.CleanupRequest
- All Implemented Interfaces:
Comparable<Delayed>
,Delayed
-
Constructor Summary
ConstructorDescriptionCleanupRequest
(String attemptId, String atrId, CollectionIdentifier atrCollection, AttemptState state, List<DocRecord> stagedReplaces, List<DocRecord> stagedRemoves, List<DocRecord> stagedInserts, Duration delay, Optional<ForwardCompatibility> forwardCompatibility, long ageMillis, Optional<DurabilityLevel> durabilityLevel) -
Method Summary
Modifier and TypeMethodDescriptionlong
atrId()
int
long
static CleanupRequest
fromAtrEntry
(CollectionIdentifier atrCollection, ActiveTransactionRecordEntry atrEntry) long
state()
toString()
-
Constructor Details
-
CleanupRequest
public CleanupRequest(String attemptId, String atrId, CollectionIdentifier atrCollection, AttemptState state, List<DocRecord> stagedReplaces, List<DocRecord> stagedRemoves, List<DocRecord> stagedInserts, Duration delay, Optional<ForwardCompatibility> forwardCompatibility, long ageMillis, Optional<DurabilityLevel> durabilityLevel) - Parameters:
attemptId
- Of the attempt making this requestatrId
- The ATR document's IDdelay
- When this request will be handled
-
-
Method Details
-
fromAtrEntry
public static CleanupRequest fromAtrEntry(CollectionIdentifier atrCollection, ActiveTransactionRecordEntry atrEntry) -
createdAt
public long createdAt() -
attemptId
-
atrId
-
atrCollection
-
stagedReplaces
-
stagedRemoves
-
stagedInserts
-
state
-
forwardCompatibility
-
durabilityLevel
-
ageMillis
public long ageMillis() -
getDelay
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Delayed>
-
toString
-