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.client;
10 import java.util.concurrent.TimeUnit;
11 import org.opendaylight.controller.cluster.access.concepts.RequestException;
14 * Internal {@link RequestException} used as poison cause when the client fails to make progress for a long time.
15 * See {@link AbstractClientConnection} for details.
17 * @author Robert Varga
19 final class NoProgressException extends RequestException {
20 private static final long serialVersionUID = 1L;
22 protected NoProgressException(final long nanos) {
23 super(String.format("No progress in %s seconds", TimeUnit.NANOSECONDS.toSeconds(nanos)));
27 public boolean isRetriable() {