/* * Copyright © 2018 Red Hat, Inc. and others. * * 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.mdsal.binding.util; /** * {@link java.util.function.Function} which can throw a checked exception and be interrupted. * * @param The type of the input to be processed. * @param The type of the result to be returned. * @param The type of the exception which may be thrown. */ @FunctionalInterface public interface InterruptibleCheckedFunction { R apply(T input) throws E, InterruptedException; }