Deprecate all MD-SAL APIs
[controller.git] / opendaylight / md-sal / sal-dom-compat / src / main / java / org / opendaylight / controller / sal / core / compat / LegacyPingPongDOMDataBrokerAdapter.java
1 /*
2  * Copyright (c) 2019 PANTHEON.tech and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.sal.core.compat;
9
10 import org.opendaylight.mdsal.dom.api.DOMTransactionChain;
11 import org.opendaylight.mdsal.dom.api.DOMTransactionChainListener;
12
13 /**
14  * Adapter between the legacy controller API-based DOMDataBroker and the mdsal API-based DOMDataBroker, equivalent
15  * to PingPongDOMDataBroker.
16  */
17 @Deprecated
18 public class LegacyPingPongDOMDataBrokerAdapter extends AbstractLegacyDOMDataBrokerAdapter {
19     public LegacyPingPongDOMDataBrokerAdapter(final org.opendaylight.mdsal.dom.api.DOMDataBroker delegate) {
20         super(delegate);
21     }
22
23     @Override
24     DOMTransactionChain createDelegateChain(DOMTransactionChainListener listener) {
25         return delegate().createMergingTransactionChain(listener);
26     }
27 }