Package cz.o2.proxima.core.transaction
Class State
- java.lang.Object
-
- cz.o2.proxima.core.transaction.State
-
- All Implemented Interfaces:
java.io.Serializable
@Internal public class State extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classState.Flags
-
Constructor Summary
Constructors Constructor Description State()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stateaborted()Move this state toState.Flags.ABORTED.Statecommitted(java.util.Collection<StreamElement> outputs)Create newStatethat is marked asState.Flags.COMMITTED.static Stateempty()booleanisFinal()static Stateopen(long sequentialId, long stamp, java.util.Collection<KeyAttribute> openAttributes)Stateupdate(java.util.Collection<KeyAttribute> additionalAttributes)
-
-
-
Method Detail
-
open
public static State open(long sequentialId, long stamp, java.util.Collection<KeyAttribute> openAttributes)
-
empty
public static State empty()
-
committed
public State committed(java.util.Collection<StreamElement> outputs)
Create newStatethat is marked asState.Flags.COMMITTED.- Parameters:
outputs- the attributes that are to be committed- Returns:
- new
Statemarked asState.Flags.COMMITTED.
-
update
public State update(java.util.Collection<KeyAttribute> additionalAttributes)
-
aborted
public State aborted()
Move this state toState.Flags.ABORTED.- Returns:
- new
Statemarked asState.Flags.ABORTED.
-
isFinal
public boolean isFinal()
-
-