Interface MongoConcurrentUtils.CriticalOperation<ReturnT>
- Type Parameters:
ReturnT
- the operation
- Enclosing class:
MongoConcurrentUtils
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A basic a atomic operation. The operation is supplied with a
Datastore
instance which is used to handel the atomic
operation.-
Method Summary
-
Method Details
-
attempt
Defines the logic for hte operation.- Parameters:
datastore
- the datastore- Returns:
- the return type
- Throws:
MongoConcurrentUtils.ContentionException
-