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.controller.cluster.access.concepts;
10 import com.google.common.annotations.Beta;
13 * General error raised when the recipient of a {@link Request} determines that the request contains
14 * a {@link ClientIdentifier} which corresponds to an outdated generation.
16 * @author Robert Varga
19 public final class RetiredGenerationException extends RequestException {
20 private static final long serialVersionUID = 1L;
22 public RetiredGenerationException(final long originatingGeneration, final long newGeneration) {
23 super("Originating generation " + Long.toUnsignedString(originatingGeneration) + " was superseded by "
24 + Long.toUnsignedString(newGeneration));
28 public boolean isRetriable() {