Merge "Resolve Bug:593. Persister should communicate via OSGi SR instead of TCP."
[controller.git] / opendaylight / config / config-manager / src / main / java / org / opendaylight / controller / config / manager / impl / ConfigTransactionControllerImplMXBean.java
1 /*
2  * Copyright (c) 2013 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
16         ConfigTransactionController {
17
18     /**
19      * Get version of config registry when this transaction was created.
20      */
21     long getParentVersion();
22
23     /**
24      * Get version of current transaction.
25      */
26     long getVersion();
27
28 }