Class AbstractClientHistory
- java.lang.Object
-
- org.opendaylight.controller.cluster.databroker.actors.dds.AbstractClientHistory
-
- All Implemented Interfaces:
Identifiable<LocalHistoryIdentifier>
- Direct Known Subclasses:
ClientLocalHistory
public abstract class AbstractClientHistory extends Object implements Identifiable<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 ClientTransaction
createTransaction()
Allocate a newClientTransaction
.LocalHistoryIdentifier
getIdentifier()
ClientSnapshot
takeSnapshot()
Create a newClientSnapshot
.
-
-
-
Method Detail
-
getIdentifier
public LocalHistoryIdentifier getIdentifier()
- Specified by:
getIdentifier
in interfaceIdentifiable<LocalHistoryIdentifier>
-
createTransaction
public ClientTransaction createTransaction()
Allocate a newClientTransaction
.- Returns:
- A new
ClientTransaction
- Throws:
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:
DOMTransactionChainClosedException
- if this history is closedIllegalStateException
- if a previous dependent transaction has not been closed
-
-