public class TransactionManager extends Object
| Constructor and Description |
|---|
TransactionManager(Database database,
org.onosproject.store.service.ConsistentMapBuilder<Long,org.onosproject.store.service.Transaction> mapBuilder)
Constructs a new TransactionManager for the specified database instance.
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<CommitResponse> |
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, org.onosproject.store.service.ConsistentMapBuilder<Long,org.onosproject.store.service.Transaction> mapBuilder)
database - databasemapBuilder - builder for ConsistentMap instancespublic CompletableFuture<CommitResponse> execute(org.onosproject.store.service.Transaction transaction)
transaction - transaction to commitpublic CompletableFuture<Collection<org.onosproject.store.service.Transaction>> getTransactions()
Copyright © 2015. All rights reserved.