Improve segmented journal actor metrics
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / behaviors / FollowerIdentifier.java
1 /*
2  * Copyright (c) 2017 Inocybe Technologies 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.behaviors;
9
10 import org.opendaylight.yangtools.util.AbstractStringIdentifier;
11
12 /**
13  * An Identifier for a follower.
14  *
15  * @author Thomas Pantelis
16  */
17 final class FollowerIdentifier extends AbstractStringIdentifier<FollowerIdentifier> {
18     @java.io.Serial
19     private static final long serialVersionUID = 1L;
20
21     FollowerIdentifier(final String followerId) {
22         super(followerId);
23     }
24
25     @java.io.Serial
26     private Object writeReplace() {
27         return new FI(getValue());
28     }
29 }