All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opendaylight.serviceutils.metrics.function.CheckedRunnable Maven / Gradle / Ivy

/*
 * Copyright (c) 2017 Red Hat, Inc. and others. All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 */
package org.opendaylight.serviceutils.metrics.function;

/**
 * Functional interface similar to {@link Runnable} (but not technically
 * extending Runnable, because it cannot; and doesn't have to) which can throw a
 * generically parameterized type of checked exception.
 *
 * @param  the type of the Exception to the operation
 *
 * @author Michael Vorburger.ch
 */
@FunctionalInterface
public interface CheckedRunnable {

    void run() throws E;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy