]> git.basschouten.com Git - openhab-addons.git/blob
78747b68dc0df501ab7edb608fa7bd28f68a463e
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.bluetooth.util;
14
15 import java.util.concurrent.TimeUnit;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18
19 /**
20  * This is a special exception that can be thrown by Callable instances
21  * used by a RetryFuture.
22  *
23  * @author Connor Petty - Initial contribution
24  *
25  */
26 @NonNullByDefault
27 public class RetryException extends Exception {
28
29     private static final long serialVersionUID = 8512275408512109328L;
30     final long delay;
31     final TimeUnit unit;
32
33     public RetryException(long delay, TimeUnit unit) {
34         this.delay = delay;
35         this.unit = unit;
36     }
37 }