public class DefaultTransactionContext extends Object implements org.onosproject.store.service.TransactionContext
| Constructor and Description |
|---|
DefaultTransactionContext(Database database,
long transactionId) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort() |
void |
begin() |
void |
commit() |
<K,V> org.onosproject.store.service.TransactionalMap<K,V> |
getTransactionalMap(String mapName,
org.onosproject.store.service.Serializer serializer) |
boolean |
isOpen() |
long |
transactionId() |
public DefaultTransactionContext(Database database, long transactionId)
public long transactionId()
transactionId in interface org.onosproject.store.service.TransactionContextpublic void begin()
begin in interface org.onosproject.store.service.TransactionContextpublic boolean isOpen()
isOpen in interface org.onosproject.store.service.TransactionContextpublic <K,V> org.onosproject.store.service.TransactionalMap<K,V> getTransactionalMap(String mapName, org.onosproject.store.service.Serializer serializer)
getTransactionalMap in interface org.onosproject.store.service.TransactionContextpublic void commit()
commit in interface org.onosproject.store.service.TransactionContextpublic void abort()
abort in interface org.onosproject.store.service.TransactionContextCopyright © 2015. All rights reserved.