Improve segmented journal actor metrics
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / persisted / EmptyState.java
1 /*
2  * Copyright (c) 2017 Brocade Communications Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.cluster.raft.persisted;
9
10 /**
11  * Empty Snapshot State implementation.
12  *
13  * @author Thomas Pantelis
14  */
15 public final class EmptyState implements Snapshot.State {
16     @java.io.Serial
17     private static final long serialVersionUID = 1L;
18
19     public static final EmptyState INSTANCE = new EmptyState();
20
21     private EmptyState() {
22         // Hidden on purpose
23     }
24
25     @java.io.Serial
26     @SuppressWarnings("static-method")
27     private Object readResolve() {
28         return INSTANCE;
29     }
30 }