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.Serializable
A 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 class
Commit.TransactionUpdate
An update to transactional attribute of a transaction.
-
Constructor Summary
Constructors Constructor Description Commit()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Commit
outputs(java.util.Collection<Commit.TransactionUpdate> transactionUpdates, java.util.Collection<StreamElement> outputs)
Create newCommit
message to be appended to_transcation.commit
static Commit
updates(java.util.Collection<Commit.TransactionUpdate> transactionUpdates)
Create newCommit
message 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 newCommit
message 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 newCommit
message to be appended to_transcation.commit
- Parameters:
transactionUpdates
- Updates to transactional attributes.
-
-