@@ -0,0 +1,2223 @@
+/* This file is part of VoltDB.%0A * Copyright (C) 2008-2012 VoltDB Inc.%0A *%0A * VoltDB is free software: you can redistribute it and/or modify%0A * it under the terms of the GNU General Public License as published by%0A * the Free Software Foundation, either version 3 of the License, or%0A * (at your option) any later version.%0A *%0A * VoltDB is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A * GNU General Public License for more details.%0A *%0A * You should have received a copy of the GNU General Public License%0A * along with VoltDB.  If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A */%0A%0Apackage org.voltdb.dtxn;%0A%0Aimport org.voltdb.StoredProcedureInvocation;%0A%0A/**%0A * Provide an interface that both Iv2 and simple dtxn can implement.%0A */%0Apublic interface TransactionCreator%0A%7B%0A    // create a new transaction.%0A    public boolean createTransaction(%0A            long connectionId,%0A            final String connectionHostname,%0A            boolean adminConnection,%0A            StoredProcedureInvocation invocation,%0A            boolean isReadOnly,%0A            boolean isSinglePartition,%0A            boolean isEverySite,%0A            int partitions%5B%5D,%0A            int numPartitions,%0A            Object clientData,%0A            int messageSize,%0A            long now,%0A            boolean allowMismatchedResults);%0A%0A    // Create a transaction using the provided txnId.%0A    public boolean createTransaction(%0A            long connectionId,%0A            final String connectionHostname,%0A            boolean adminConnection,%0A            long txnId,%0A            StoredProcedureInvocation invocation,%0A            boolean isReadOnly,%0A            boolean isSinglePartition,%0A            boolean isEverySite,%0A            int partitions%5B%5D,%0A            int numPartitions,%0A            Object clientData,%0A            int messageSize,%0A            long now,%0A            boolean allowMismatchedResults);%0A%0A    public void setSendHeartbeats(boolean val);%0A    public void sendHeartbeat(long txnId);%0A%0A    /**%0A     * Whether or not the initiator is on back pressure.%0A     * @return%0A     */%0A    public abstract boolean isOnBackPressure();%0A%7D%0A

Add the TransactionCreator interface.