Class CleanupRequest
- java.lang.Object
-
- com.couchbase.client.core.transaction.cleanup.CleanupRequest
-
-
Constructor Summary
Constructors Constructor Description 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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
ageMillis()
CollectionIdentifier
atrCollection()
String
atrId()
String
attemptId()
int
compareTo(Delayed o)
long
createdAt()
Optional<DurabilityLevel>
durabilityLevel()
Optional<ForwardCompatibility>
forwardCompatibility()
static CleanupRequest
fromAtrEntry(CollectionIdentifier atrCollection, ActiveTransactionRecordEntry atrEntry)
long
getDelay(TimeUnit unit)
List<DocRecord>
stagedInserts()
List<DocRecord>
stagedRemoves()
List<DocRecord>
stagedReplaces()
AttemptState
state()
String
toString()
-
-
-
Constructor Detail
-
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 Detail
-
fromAtrEntry
public static CleanupRequest fromAtrEntry(CollectionIdentifier atrCollection, ActiveTransactionRecordEntry atrEntry)
-
createdAt
public long createdAt()
-
attemptId
public String attemptId()
-
atrId
public String atrId()
-
atrCollection
public CollectionIdentifier atrCollection()
-
state
public AttemptState state()
-
forwardCompatibility
public Optional<ForwardCompatibility> forwardCompatibility()
-
durabilityLevel
public Optional<DurabilityLevel> durabilityLevel()
-
ageMillis
public long ageMillis()
-
compareTo
public int compareTo(Delayed o)
- Specified by:
compareTo
in interfaceComparable<Delayed>
-
-