<groupId>org.opendaylight.mdsal</groupId>
<artifactId>mdsal-binding-spi</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.opendaylight.mdsal</groupId>
+ <artifactId>mdsal-binding-util</artifactId>
+ </dependency>
<dependency>
<groupId>com.google.truth</groupId>
<artifactId>truth</artifactId>
/**
* Strongly-typed representation of a datastore (configuration or operational).
+ *
+ * @deprecated Use {@link org.opendaylight.mdsal.binding.util.Datastore} instead.
*/
+@Deprecated(forRemoval = true)
public abstract class Datastore {
/** Class representing the configuration datastore. */
* <p>This should typically be used (only) directly in code which really must be creating its own new transactions,
* such as RPC entry points, or background jobs. Other lower level code "behind" such entry points should
* just get handed over the transaction provided by this API.
+ *
+ * @deprecated Use {@link org.opendaylight.mdsal.binding.util.ManagedNewTransactionRunner} instead.
*/
@Beta
+@Deprecated(forRemoval = true)
public interface ManagedNewTransactionRunner extends ManagedTransactionFactory {
/**
* Implementation of {@link ManagedNewTransactionRunner}. This is based on {@link ManagedTransactionFactoryImpl} but
* re-implements operations based on (read-)write transactions to cancel transactions which don't end up making any
* changes to the datastore.
+ *
+ * @deprecated Use {@link org.opendaylight.mdsal.binding.util.ManagedNewTransactionRunnerImpl} instead.
*/
@Beta
+@Deprecated(forRemoval = true)
// Do *NOT* mark this as @Singleton, because users choose Impl; and as long as this in API, because of https://wiki.opendaylight.org/view/BestPractices/DI_Guidelines#Nota_Bene
public class ManagedNewTransactionRunnerImpl extends ManagedTransactionFactoryImpl
implements ManagedNewTransactionRunner {
/**
* Managed transaction chains provide managed semantics around transaction chains, <em>i.e.</em> chains which provide
* transactions which are automatically submitted or cancelled.
+ *
+ * @deprecated Use {@link org.opendaylight.mdsal.binding.util.ManagedTransactionChain} instead.
*/
+@Deprecated
public interface ManagedTransactionChain extends ManagedTransactionFactory {
+
}
/**
* Managed transaction factories provide managed transactions, <em>i.e.</em> transactions which are automatically
* submitted or cancelled (write) or closed (read).
+ *
+ * @deprecated Use {@link org.opendaylight.mdsal.binding.util.ManagedTransactionFactory} instead.
*/
+@Deprecated(forRemoval = true)
public interface ManagedTransactionFactory {
/**
* Invokes a function with a <b>NEW</b> {@link TypedReadTransaction}, and ensures that that transaction is closed.
* another {@link Executor} to be used for the retries by using the alternative constructor.
*
* @author Michael Vorburger.ch & Stephen Kitt
+ * @deprecated Use {@link org.opendaylight.mdsal.binding.util.RetryingManagedNewTransactionRunner} instead.
*/
@Beta
+@Deprecated
// Do *NOT* mark this as @Singleton, because users choose Impl; and as long as this in API, because of https://wiki.opendaylight.org/view/BestPractices/DI_Guidelines#Nota_Bene
public class RetryingManagedNewTransactionRunner extends RetryingManagedNewTransactionRunnerImpl {
* <p>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.
+ *
+ * @deprecated Use {@link org.opendaylight.mdsal.binding.util.TransactionAdapter} instead.
*/
-@Deprecated
+@Deprecated(forRemoval = true)
public final class TransactionAdapter {
private TransactionAdapter() {
import org.opendaylight.yangtools.yang.binding.DataObject;
import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
-
/**
* Read transaction which is specific to a single logical datastore (configuration or operational). Designed for use
* with {@link ManagedNewTransactionRunner} (it doesn’t support explicit cancel or commit operations).
* @see ReadTransaction
*
* @param <D> The logical datastore handled by the transaction.
+ * @deprecated Use {@link org.opendaylight.mdsal.binding.util.TypedReadTransaction} instead.
*/
+@Deprecated(forRemoval = true)
public interface TypedReadTransaction<D extends Datastore>
extends Transaction {
/**
*
* @param <D> The logical datastore handled by the transaction.
* @see org.opendaylight.mdsal.binding.api.ReadWriteTransaction
+ * @deprecated Use {@link org.opendaylight.mdsal.binding.util.TypedReadWriteTransaction} instead.
*/
+@Deprecated(forRemoval = true)
public interface TypedReadWriteTransaction<D extends Datastore>
extends TypedReadTransaction<D>, TypedWriteTransaction<D> {
}
*
* @param <D> The logical datastore handled by the transaction.
* @see WriteTransaction
+ * @deprecated Use {@link org.opendaylight.mdsal.binding.util.TypedWriteTransaction} instead.
*/
+@Deprecated(forRemoval = true)
public interface TypedWriteTransaction<D extends Datastore> extends
Transaction {
/**