Package | Description |
---|---|
org.opendaylight.mdsal.binding.util |
Modifier and Type | Interface and Description |
---|---|
interface |
TypedReadTransaction<D extends Datastore>
Read transaction which is specific to a single logical datastore (configuration or operational).
|
interface |
TypedReadWriteTransaction<D extends Datastore>
Read-write transaction which is specific to a single logical datastore (configuration or operational).
|
interface |
TypedWriteTransaction<D extends Datastore>
Write transaction which is specific to a single logical datastore (configuration or operational).
|
Modifier and Type | Class and Description |
---|---|
static class |
Datastore.Configuration |
static class |
Datastore.Operational |
Modifier and Type | Method and Description |
---|---|
<D extends Datastore,E extends Exception,R> |
ManagedTransactionFactory.applyInterruptiblyWithNewReadOnlyTransactionAndClose(Class<D> datastoreType,
InterruptibleCheckedFunction<TypedReadTransaction<D>,R,E> txFunction)
Invokes a function with a NEW
TypedReadTransaction , and ensures that that transaction is closed. |
<D extends Datastore,E extends Exception,R> |
ManagedTransactionFactory.applyWithNewReadOnlyTransactionAndClose(Class<D> datastoreType,
CheckedFunction<TypedReadTransaction<D>,R,E> txFunction)
Invokes a function with a NEW
TypedReadTransaction , and ensures that that transaction is closed. |
<D extends Datastore,E extends Exception,R> |
ManagedNewTransactionRunnerImpl.applyWithNewReadWriteTransactionAndSubmit(Class<D> datastoreType,
InterruptibleCheckedFunction<TypedReadWriteTransaction<D>,R,E> txFunction) |
<D extends Datastore,E extends Exception,R> |
ManagedTransactionFactory.applyWithNewReadWriteTransactionAndSubmit(Class<D> datastoreType,
InterruptibleCheckedFunction<TypedReadWriteTransaction<D>,R,E> txFunction)
Invokes a function with a NEW
ReadWriteTransaction , and then submits that transaction and
returns the Future from that submission, or cancels it if an exception was thrown and returns a failed
future with that exception. |
<D extends Datastore,E extends Exception> |
ManagedTransactionFactory.callInterruptiblyWithNewReadOnlyTransactionAndClose(Class<D> datastoreType,
InterruptibleCheckedConsumer<TypedReadTransaction<D>,E> txConsumer)
Invokes a function with a NEW
ReadTransaction , and ensures that that transaction is closed. |
<D extends Datastore,E extends Exception> |
ManagedTransactionFactory.callWithNewReadOnlyTransactionAndClose(Class<D> datastoreType,
CheckedConsumer<TypedReadTransaction<D>,E> txConsumer)
Invokes a function with a NEW
ReadTransaction , and ensures that that transaction is closed. |
<D extends Datastore,E extends Exception> |
ManagedNewTransactionRunnerImpl.callWithNewReadWriteTransactionAndSubmit(Class<D> datastoreType,
InterruptibleCheckedConsumer<TypedReadWriteTransaction<D>,E> txConsumer) |
<D extends Datastore,E extends Exception> |
ManagedTransactionFactory.callWithNewReadWriteTransactionAndSubmit(Class<D> datastoreType,
InterruptibleCheckedConsumer<TypedReadWriteTransaction<D>,E> txConsumer)
Invokes a consumer with a NEW
ReadWriteTransaction , and then submits that transaction and
returns the Future from that submission, or cancels it if an exception was thrown and returns a failed
future with that exception. |
<D extends Datastore,E extends Exception> |
ManagedNewTransactionRunnerImpl.callWithNewWriteOnlyTransactionAndSubmit(Class<D> datastoreType,
InterruptibleCheckedConsumer<TypedWriteTransaction<D>,E> txConsumer) |
<D extends Datastore,E extends Exception> |
ManagedTransactionFactory.callWithNewWriteOnlyTransactionAndSubmit(Class<D> datastoreType,
InterruptibleCheckedConsumer<TypedWriteTransaction<D>,E> txConsumer)
Invokes a consumer with a NEW
WriteTransaction , and then submits that transaction and
returns the Future from that submission, or cancels it if an exception was thrown and returns a failed
future with that exception. |
Modifier and Type | Method and Description |
---|---|
static Class<? extends Datastore> |
Datastore.toClass(LogicalDatastoreType datastoreType)
Returns the datastore class corresponding to the given logical datastore type.
|
Modifier and Type | Method and Description |
---|---|
static ReadWriteTransaction |
TransactionAdapter.toReadWriteTransaction(TypedReadWriteTransaction<? extends Datastore> datastoreTx)
Deprecated.
Adapts the given datastore-constrained read-write transaction to a generic read-write transaction.
|
static LogicalDatastoreType |
Datastore.toType(Class<? extends Datastore> datastoreClass)
Returns the logical datastore type corresponding to the given datastore class.
|
static WriteTransaction |
TransactionAdapter.toWriteTransaction(TypedWriteTransaction<? extends Datastore> datastoreTx)
Deprecated.
Adapts the given datastore-constrained write transaction to a generic write transaction.
|
Copyright © 2019 OpenDaylight. All rights reserved.