public interface Transaction
| Modifier and Type | Interface and Description |
|---|---|
static class |
Transaction.State |
| Modifier and Type | Method and Description |
|---|---|
long |
id()
Returns the transaction Id.
|
default boolean |
isDone()
Returns true if this transaction has completed execution.
|
long |
lastUpdated()
Returns the system time when the transaction was last updated.
|
Transaction.State |
state()
Returns the current state of this transaction.
|
Transaction |
transition(Transaction.State newState)
Returns a new transaction that is created by transitioning this one to the specified state.
|
List<DatabaseUpdate> |
updates()
Returns the list of updates that are part of this transaction.
|
long id()
List<DatabaseUpdate> updates()
Transaction.State state()
default boolean isDone()
Transaction transition(Transaction.State newState)
newState - destination statelong lastUpdated()
Copyright © 2015. All rights reserved.