Fix checkstyle issues to enforce it
[controller.git] / opendaylight / config / config-manager / src / main / java / org / opendaylight / controller / config / manager / impl / ConfigRegistryImplMXBean.java
1 /*
2  * Copyright (c) 2013, 2017 Cisco Systems, Inc. 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.config.manager.impl;
9
10 import org.opendaylight.controller.config.api.ConfigRegistry;
11
12 /**
13  * Exposes version of config registry.
14  */
15 public interface ConfigRegistryImplMXBean extends ConfigRegistry {
16     /**
17      * Get the version of last committed transaction that is now used as base
18      *         version. Transactions can only be committed if their parent
19      *         version matches this value, that means, transaction must be
20      *         started after last one has been committed.
21      * @return version
22      */
23     long getVersion();
24
25 }