Class CleanupRequest
java.lang.Object
com.couchbase.client.core.transaction.cleanup.CleanupRequest
- All Implemented Interfaces:
Comparable<Delayed>,Delayed
-
Constructor Summary
ConstructorsConstructorDescriptionCleanupRequest(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 TypeMethodDescriptionlongatrId()intlongstatic CleanupRequestfromAtrEntry(CollectionIdentifier atrCollection, ActiveTransactionRecordEntry atrEntry) longstate()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:
compareToin interfaceComparable<Delayed>
-
toString
-