2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.controller.config.manager.impl.dynamicmbean;
10 import java.util.concurrent.atomic.AtomicBoolean;
12 public interface ReadOnlyAtomicBoolean {
15 public static class ReadOnlyAtomicBooleanImpl implements
16 ReadOnlyAtomicBoolean {
17 private final AtomicBoolean atomicBoolean;
19 public ReadOnlyAtomicBooleanImpl(AtomicBoolean atomicBoolean) {
21 this.atomicBoolean = atomicBoolean;
25 public boolean get() {
26 return atomicBoolean.get();