2 * Copyright (c) 2014 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
9 package org.opendaylight.controller.cluster.datastore.messages;
12 * A NonPersistent message is to be used when we want to trigger state update
13 * for an actor without actually persisting the data to disk. This could be
14 * useful for test purposes.
16 public class NonPersistent {
17 private final Object payload;
19 public NonPersistent(Object payload){
20 this.payload = payload;
23 public Object payload() {
27 public static NonPersistent create(Object payload){
28 return new NonPersistent(payload);