Class CoreTransactionsCleanupConfig
- java.lang.Object
-
- com.couchbase.client.core.transaction.config.CoreTransactionsCleanupConfig
-
-
Field Summary
Fields Modifier and Type Field Description static Duration
DEFAULT_TRANSACTION_CLEANUP_WINDOW
static String
TRANSACTIONS_CLEANUP_LOST_PROPERTY
static String
TRANSACTIONS_CLEANUP_REGULAR_PROPERTY
-
Constructor Summary
Constructors Constructor Description CoreTransactionsCleanupConfig(boolean runLostAttemptsCleanupThread, boolean runRegularAttemptsCleanupThread, Duration cleanupWindow, Set<CollectionIdentifier> cleanupSet)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<CollectionIdentifier>
cleanupSet()
Duration
cleanupWindow()
static CoreTransactionsCleanupConfig
createDefault()
static CoreTransactionsCleanupConfig
createForSingleQueryTransactions()
boolean
runLostAttemptsCleanupThread()
boolean
runRegularAttemptsCleanupThread()
-
-
-
Field Detail
-
DEFAULT_TRANSACTION_CLEANUP_WINDOW
public static final Duration DEFAULT_TRANSACTION_CLEANUP_WINDOW
-
TRANSACTIONS_CLEANUP_LOST_PROPERTY
public static final String TRANSACTIONS_CLEANUP_LOST_PROPERTY
- See Also:
- Constant Field Values
-
TRANSACTIONS_CLEANUP_REGULAR_PROPERTY
public static final String TRANSACTIONS_CLEANUP_REGULAR_PROPERTY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CoreTransactionsCleanupConfig
public CoreTransactionsCleanupConfig(boolean runLostAttemptsCleanupThread, boolean runRegularAttemptsCleanupThread, Duration cleanupWindow, Set<CollectionIdentifier> cleanupSet)
-
-
Method Detail
-
createDefault
@Internal public static CoreTransactionsCleanupConfig createDefault()
-
createForSingleQueryTransactions
public static CoreTransactionsCleanupConfig createForSingleQueryTransactions()
-
runLostAttemptsCleanupThread
public boolean runLostAttemptsCleanupThread()
-
runRegularAttemptsCleanupThread
public boolean runRegularAttemptsCleanupThread()
-
cleanupWindow
public Duration cleanupWindow()
-
cleanupSet
public Set<CollectionIdentifier> cleanupSet()
-
-