Interface MorphiaTransaction<T>

  • Type Parameters:
    T - the entity type

    public interface MorphiaTransaction<T>
    Defines the functional interface for executing statements within a transaction. Care should be take to use only the session reference passed rather than any direct reference to another Datastore.
    • Method Detail

      • execute

        T execute​(MorphiaSession session)
        Executes the transaction body
        session - the session to use
        any result from the transaction