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

        @Nullable
        T execute​(MorphiaSession session)
        Executes the transaction body
        Parameters:
        session - the session to use
        Returns:
        any result from the transaction