-
Notifications
You must be signed in to change notification settings - Fork 642
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #602 from afs/jena1746-tdb2-abort
JENA-1746: TDB2 abort
- Loading branch information
Showing
14 changed files
with
694 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
...e-transaction/src/main/java/org/apache/jena/dboe/transaction/txn/TransactionListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.jena.dboe.transaction.txn; | ||
|
||
/** Call backs for the transaction lifecycle. */ | ||
public interface TransactionListener { | ||
|
||
/** A transaction has started; begin has done the setup. */ | ||
public default void notifyTxnStart(Transaction transaction) { } | ||
|
||
/** Start a call to promote */ | ||
public default void notifyPromoteStart(Transaction transaction) { } | ||
/** Finish a call to promote */ | ||
public default void notifyPromoteFinish(Transaction transaction) { } | ||
|
||
/** Start prepare during a commit */ | ||
public default void notifyPrepareStart(Transaction transaction) { } | ||
/** Finish prepare during a commit */ | ||
public default void notifyPrepareFinish(Transaction transaction) { } | ||
|
||
/** Start a commit (prepare has been done) */ | ||
public default void notifyCommitStart(Transaction transaction) { } | ||
/** Finish a commit (prepare has been done) */ | ||
public default void notifyCommitFinish(Transaction transaction) { } | ||
|
||
/** Start an abort */ | ||
public default void notifyAbortStart(Transaction transaction) { } | ||
/** Start finish an abort */ | ||
public default void notifyAbortFinish(Transaction transaction) { } | ||
|
||
/** Start an end() */ | ||
public default void notifyEndStart(Transaction transaction) { } | ||
/** Finish an end() */ | ||
public default void notifyEndFinish(Transaction transaction) { } | ||
|
||
/** Start the complete step. */ | ||
public default void notifyCompleteStart(Transaction transaction) { } | ||
/** Finish the complete step. */ | ||
public default void notifyCompleteFinish(Transaction transaction) { } | ||
|
||
/** Transaction has finished. This is called during "complete" */ | ||
public default void notifyTxnFinish(Transaction transaction) { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.