@Stability.Volatile public class TransactionCleanupStartRunEvent extends TransactionEvent
As this exposes implementation details of transactions, all methods are subject to change and marked with @Stability.Volatile.
Constructor and Description |
---|
TransactionCleanupStartRunEvent(java.lang.String bucketName,
java.lang.String collectionName,
java.lang.String clientUuid,
ClientRecordDetails clientDetails,
java.time.Duration cleanupWindow,
int atrsToCheckInNextWindow,
int totalAtrs,
java.time.Duration checkAtrEvery) |
Modifier and Type | Method and Description |
---|---|
int |
atrsToCheckInNextWindow()
How many ATRs this client will check over the next cleanupWindow.
|
java.lang.String |
bucketName()
The bucket containing the ATRs being checked by this cleanup.
|
java.time.Duration |
checkAtrEvery()
How regular an ATR should be checked by this client over the next cleanupWindow.
|
java.time.Duration |
cleanupWindow()
All ATRs are checked once every cleanupWindow.
|
int |
clientIndex()
The numeric index of the client in a sorted list of active clients.
|
java.lang.String |
clientUuid()
The unique ID of the this client (application).
|
java.lang.String |
collectionName()
The collection containing the ATRs being checked by this cleanup.
|
java.lang.String |
description() |
boolean |
success()
Provided so the app check if this event is regarded as a success, and if not, output any logs it has.
|
int |
totalActiveClients()
The total active, alive clients taking part in cleanup, including this one.
|
int |
totalAtrs()
The total number of ATRs being checked by all clients.
|
logs
category, context, createdAt, duration, severity, toString
@Stability.Volatile public TransactionCleanupStartRunEvent(java.lang.String bucketName, java.lang.String collectionName, java.lang.String clientUuid, ClientRecordDetails clientDetails, java.time.Duration cleanupWindow, int atrsToCheckInNextWindow, int totalAtrs, java.time.Duration checkAtrEvery)
@Stability.Volatile public int clientIndex()
@Stability.Volatile public int totalActiveClients()
@Stability.Volatile public java.time.Duration cleanupWindow()
@Stability.Volatile public int atrsToCheckInNextWindow()
@Stability.Volatile public int totalAtrs()
@Stability.Volatile public java.time.Duration checkAtrEvery()
@Stability.Volatile public java.lang.String bucketName()
@Stability.Volatile public java.lang.String collectionName()
@Stability.Volatile public java.lang.String clientUuid()
public java.lang.String description()
public boolean success()
TransactionEvent
success
in class TransactionEvent