Fix checkstyle issues to enforce it
[controller.git] / opendaylight / config / config-manager / src / main / java / org / opendaylight / controller / config / manager / impl / ConfigTransactionControllerImplMXBean.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.ConfigTransactionController;
11
12 /**
13  * Exposes optimistic locking details about transaction.
14  */
15 public interface ConfigTransactionControllerImplMXBean extends ConfigTransactionController {
16
17     /**
18      * Get version of config registry when this transaction was created.
19      *
20      * @return parent version
21      */
22     long getParentVersion();
23
24     /**
25      * Get version of current transaction.
26      *
27      * @return version
28      */
29     long getVersion();
30 }