Class AbstractClientHistory
- java.lang.Object
-
- org.opendaylight.controller.cluster.databroker.actors.dds.AbstractClientHistory
-
- All Implemented Interfaces:
org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.controller.cluster.access.concepts.LocalHistoryIdentifier>
- Direct Known Subclasses:
ClientLocalHistory
public abstract class AbstractClientHistory extends Object implements org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.controller.cluster.access.concepts.LocalHistoryIdentifier>
Abstract base class for client view of a history. This class has two implementations, one for normal local histories and the other for single transactions.- Author:
- Robert Varga
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NonNull ClientTransactioncreateTransaction()Allocate a newClientTransaction.org.opendaylight.controller.cluster.access.concepts.LocalHistoryIdentifiergetIdentifier()ClientSnapshottakeSnapshot()Create a newClientSnapshot.
-
-
-
Method Detail
-
getIdentifier
public final org.opendaylight.controller.cluster.access.concepts.LocalHistoryIdentifier getIdentifier()
- Specified by:
getIdentifierin interfaceorg.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.controller.cluster.access.concepts.LocalHistoryIdentifier>
-
createTransaction
public @NonNull ClientTransaction createTransaction()
Allocate a newClientTransaction.- Returns:
- A new
ClientTransaction - Throws:
org.opendaylight.mdsal.dom.api.DOMTransactionChainClosedException- if this history is closedIllegalStateException- if a previous dependent transaction has not been closed
-
takeSnapshot
public ClientSnapshot takeSnapshot()
Create a newClientSnapshot.- Returns:
- A new
ClientSnapshot - Throws:
org.opendaylight.mdsal.dom.api.DOMTransactionChainClosedException- if this history is closedIllegalStateException- if a previous dependent transaction has not been closed
-
-