+++ /dev/null
-/*
- * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.controller.md.sal.dom.broker.impl;
-
-import com.google.common.base.Preconditions;
-import javax.annotation.Nonnull;
-import org.opendaylight.controller.md.sal.common.api.data.TransactionChainListener;
-import org.opendaylight.controller.md.sal.dom.api.DOMDataBroker;
-import org.opendaylight.controller.md.sal.dom.spi.ForwardingDOMDataBroker;
-
-/**
- * An implementation of a {@link DOMDataBroker}, which forwards most requests to a delegate.
- *
- * Its interpretation of the API contract is somewhat looser, specifically it does not
- * guarantee transaction ordering between transactions allocated directly from the broker
- * and its transaction chains.
- */
-public final class PingPongDataBroker extends ForwardingDOMDataBroker implements AutoCloseable {
- private final DOMDataBroker delegate;
-
- /**
- * Instantiate a new broker, backed by the the specified delegate
- * {@link DOMDataBroker}.
- *
- * @param delegate Backend broker, may not be null.
- */
- public PingPongDataBroker(final @Nonnull DOMDataBroker delegate) {
- this.delegate = Preconditions.checkNotNull(delegate);
- }
-
- @Override
- protected DOMDataBroker delegate() {
- return delegate;
- }
-
- @Override
- public PingPongTransactionChain createTransactionChain(final TransactionChainListener listener) {
- return new PingPongTransactionChain(delegate, listener);
- }
-
- @Override
- public void close() {
- // TODO Auto-generated method stub
- }
-}