Interface ConnectionSource

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 interface ConnectionSource
Supplies database connections to the store: the server's pool in production (DBUtilities::getPooledConnection), an in-memory database in a test.

A connection obtained here is closed by the store when it is done, which returns a pooled connection to its pool.

Author:
Christopher Mindus
  • Method Summary

    Modifier and Type
    Method
    Description
    Opens a connection.