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.

@FunctionalInterface public static interface MongoConcurrentUtils.CriticalOperation<ReturnT>
A basic a atomic operation. The operation is supplied with a Datastore instance which is used to handel the atomic operation.
  • Method Summary

    Modifier and Type
    Method
    Description
    attempt(dev.morphia.Datastore datastore)
    Defines the logic for hte operation.