2 * Copyright (c) 2016 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.mdsal.singleton.common.api;
10 import org.eclipse.jdt.annotation.NonNull;
11 import org.opendaylight.yangtools.concepts.Identifier;
14 * An {@link Identifier} of a group of {@link ClusterSingletonService}s.
16 * @param value String value, must not be {@link String#isBlank()}
18 public record ServiceGroupIdentifier(@NonNull String value) implements Identifier {
20 private static final long serialVersionUID = 1L;
22 public ServiceGroupIdentifier {
23 if (value.isBlank()) {
24 throw new IllegalArgumentException("Value must not be blank");