2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.controller.cluster;
10 import akka.japi.Procedure;
11 import akka.persistence.SnapshotSelectionCriteria;
12 import org.slf4j.Logger;
13 import org.slf4j.LoggerFactory;
16 * A DataPersistenceProvider implementation with persistence disabled, essentially a no-op.
18 public class NonPersistentDataProvider implements DataPersistenceProvider {
19 private static final Logger LOG = LoggerFactory.getLogger(NonPersistentDataProvider.class);
22 public boolean isRecoveryApplicable() {
27 public <T> void persist(T o, Procedure<T> procedure) {
30 } catch (Exception e) {
31 LOG.error("An unexpected error occurred", e);
36 public void saveSnapshot(Object o) {
40 public void deleteSnapshots(SnapshotSelectionCriteria criteria) {
44 public void deleteMessages(long sequenceNumber) {
48 public long getLastSequenceNumber() {