Interface DatabaseAPI.Connected

Enclosing interface:
DatabaseAPI
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 DatabaseAPI.Connected
Some code that may be run within a transaction and which will be given a new connection for the duration.
  • Method Summary

    Modifier and Type Method Description
    void act​(DatabaseAPI.Connection connection)
    The operation to run.
  • Method Details

    • act

      void act​(DatabaseAPI.Connection connection)
      The operation to run.
      Parameters:
      connection - The newly-created connection. Do not save beyond the scope of this action.