@Stability.Internal public class CleanupRequest extends Object implements Delayed
| Constructor and 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) |
| Modifier and Type | Method and 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() |
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)
attemptId - Of the attempt making this requestatrId - The ATR document's IDdelay - When this request will be handledpublic static CleanupRequest fromAtrEntry(CollectionIdentifier atrCollection, ActiveTransactionRecordEntry atrEntry)
public long createdAt()
public String attemptId()
public String atrId()
public CollectionIdentifier atrCollection()
public AttemptState state()
public Optional<ForwardCompatibility> forwardCompatibility()
public Optional<DurabilityLevel> durabilityLevel()
public long ageMillis()
public int compareTo(Delayed o)
compareTo in interface Comparable<Delayed>Copyright © 2024 Couchbase, Inc.. All rights reserved.