Interface CosmosDbUtil.CosmosOperation<R,E extends Throwable>

Enclosing class:
CosmosDbUtil
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 CosmosDbUtil.CosmosOperation<R,E extends Throwable>
Operation that can be retried.
  • Method Summary

    Modifier and Type
    Method
    Description
    run()
    Runs the operation.
  • Method Details

    • run

      R run() throws E
      Runs the operation.
      Returns:
      Result.
      Throws:
      E - If fails to run the operation.