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 class
State.Flags
-
Constructor Summary
Constructors Constructor Description State()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description State
aborted()
Move this state toState.Flags.ABORTED
.State
committed(java.util.Collection<StreamElement> outputs)
Create newState
that is marked asState.Flags.COMMITTED
.static State
empty()
static State
open(long sequentialId, long stamp, java.util.Collection<KeyAttribute> openAttributes)
State
update(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 newState
that is marked asState.Flags.COMMITTED
.- Parameters:
outputs
- the attributes that are to be committed- Returns:
- new
State
marked asState.Flags.COMMITTED
.
-
update
public State update(java.util.Collection<KeyAttribute> additionalAttributes)
-
aborted
public State aborted()
Move this state toState.Flags.ABORTED
.- Returns:
- new
State
marked asState.Flags.ABORTED
.
-
-