@Deprecated public final class TransactionAdapter extends Object
DataBroker
transactions.
The adapted transactions maintain the following constraints: they cannot be cancelled or submitted (only the transaction manager can do this), and they cannot access a logical datastore other than the one they were created for.
Modifier and Type | Method and Description |
---|---|
static ReadWriteTransaction |
toReadWriteTransaction(TypedReadWriteTransaction<? extends Datastore> datastoreTx)
Deprecated.
Adapts the given datastore-constrained read-write transaction to a generic read-write transaction.
|
static WriteTransaction |
toWriteTransaction(TypedWriteTransaction<? extends Datastore> datastoreTx)
Deprecated.
Adapts the given datastore-constrained write transaction to a generic write transaction.
|
public static ReadWriteTransaction toReadWriteTransaction(TypedReadWriteTransaction<? extends Datastore> datastoreTx)
datastoreTx
- The transaction to adapt.NullPointerException
- if the provided transaction is null
.public static WriteTransaction toWriteTransaction(TypedWriteTransaction<? extends Datastore> datastoreTx)
datastoreTx
- The transaction to adapt.Copyright © 2019 OpenDaylight. All rights reserved.