Address review comments
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / ShardDataTreeMetadata.java
index 8a62a2bae0b217050b7b5e17b75a6767c4e55abe..d10a44d7ab34a8ef375d553ff05f0b6a41d2b678 100644 (file)
@@ -10,6 +10,7 @@ package org.opendaylight.controller.cluster.datastore;
 import com.google.common.base.Verify;
 import javax.annotation.Nonnull;
 import javax.annotation.Nullable;
+import org.opendaylight.controller.cluster.access.concepts.LocalHistoryIdentifier;
 import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier;
 import org.opendaylight.controller.cluster.datastore.persisted.ShardDataTreeSnapshotMetadata;
 
@@ -26,8 +27,10 @@ abstract class ShardDataTreeMetadata<T extends ShardDataTreeSnapshotMetadata<T>>
 
     abstract @Nonnull Class<T> getSupportedType();
 
-    abstract @Nullable T toStapshot();
+    abstract @Nullable T toSnapshot();
 
     // Lifecycle events
-    abstract void transactionCommitted(TransactionIdentifier txId);
+    abstract void onTransactionCommitted(TransactionIdentifier txId);
+    abstract void onHistoryClosed(LocalHistoryIdentifier historyId);
+    abstract void onHistoryPurged(LocalHistoryIdentifier historyId);
 }