[Minor] added some JavaDoc to TransactionResult

This commit is contained in:
Robert von Burg 2014-01-11 17:35:19 +01:00
parent 40eec73bb1
commit aad2b447b9
1 changed files with 9 additions and 1 deletions

View File

@ -33,7 +33,7 @@ public class TransactionResult {
private long closeDuration;
private Map<String, ModificationResult> modificationByKey;
public TransactionResult() {
this.state = TransactionState.OPEN;
this.modificationByKey = new HashMap<>();
@ -70,6 +70,8 @@ public class TransactionResult {
}
/**
* The internal exception why the transaction failed
*
* @return the failCause
*/
public Exception getFailCause() {
@ -85,6 +87,8 @@ public class TransactionResult {
}
/**
* Start time of the transaction
*
* @return the startTime
*/
public Date getStartTime() {
@ -100,6 +104,8 @@ public class TransactionResult {
}
/**
* The duration the transaction was open in nanoseconds
*
* @return the txDuration
*/
public long getTxDuration() {
@ -115,6 +121,8 @@ public class TransactionResult {
}
/**
* The duration the transaction took to close in nanoseconds
*
* @return the closeDuration
*/
public long getCloseDuration() {