Package play.db

Interface ConnectionCallable<A>


public interface ConnectionCallable<A>
Similar to java.util.concurrent.Callable with a Connection as argument. Provides a functional interface for use with Java 8+. If no result needs to be returned, ConnectionRunnable can be used instead.

Vanilla Java: new ConnectionCallable<A>() { public A call(Connection c) { return ...; } } Java Lambda: (Connection c) -> ...

  • Method Summary

    Modifier and Type
    Method
    Description
    call(Connection connection)