public class TransactionManager extends Object
| Constructor and Description |
|---|
TransactionManager(Database database)
Constructs a new TransactionManager for the specified database instance.
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Boolean> |
execute(org.onosproject.store.service.Transaction transaction)
Executes the specified transaction by employing a two phase commit protocol.
|
CompletableFuture<Collection<org.onosproject.store.service.Transaction>> |
getTransactions()
Returns all transactions in the system.
|
public TransactionManager(Database database)
database - databasepublic CompletableFuture<Boolean> execute(org.onosproject.store.service.Transaction transaction)
transaction - transaction to commitpublic CompletableFuture<Collection<org.onosproject.store.service.Transaction>> getTransactions()
Copyright © 2015. All rights reserved.