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;
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);
}