Package cz.o2.proxima.core.transaction
Class Commit
- java.lang.Object
-
- cz.o2.proxima.core.transaction.Commit
-
- All Implemented Interfaces:
java.io.Serializable
public class Commit extends java.lang.Object implements java.io.SerializableA commit request sent in case there are multiple output attributes written in a transaction. When there is only single attribute, the output is written directly to target commit-log.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommit.TransactionUpdateAn update to transactional attribute of a transaction.
-
Constructor Summary
Constructors Constructor Description Commit()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.util.Collection<StreamElement>getOutputs()List ofStreamElementsto be replicated.java.util.Collection<Commit.TransactionUpdate>getTransactionUpdates()List of possible state updates and/or responses to return to client.inthashCode()static Commitoutputs(java.util.Collection<Commit.TransactionUpdate> transactionUpdates, java.util.Collection<StreamElement> outputs)Create newCommitmessage to be appended to_transcation.commitjava.lang.StringtoString()static Commitupdates(java.util.Collection<Commit.TransactionUpdate> transactionUpdates)Create newCommitmessage to be appended to_transcation.commit
-
-
-
Method Detail
-
outputs
public static Commit outputs(java.util.Collection<Commit.TransactionUpdate> transactionUpdates, java.util.Collection<StreamElement> outputs)
Create newCommitmessage to be appended to_transcation.commit- Parameters:
outputs- updates to write- Returns:
- the commit
-
updates
public static Commit updates(java.util.Collection<Commit.TransactionUpdate> transactionUpdates)
Create newCommitmessage to be appended to_transcation.commit- Parameters:
transactionUpdates- Updates to transactional attributes.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getOutputs
public java.util.Collection<StreamElement> getOutputs()
List ofStreamElementsto be replicated.
-
getTransactionUpdates
public java.util.Collection<Commit.TransactionUpdate> getTransactionUpdates()
List of possible state updates and/or responses to return to client.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-