2 * Copyright (c) 2017 Red Hat, 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.mdsal.binding.util;
10 import java.util.function.Consumer;
13 * {@link Consumer} which can throw a checked exception and be interrupted.
15 * @param <T> the type of the input to the operation
16 * @param <E> the type of the Exception to the operation
21 public interface InterruptibleCheckedConsumer<T, E extends Exception> {
23 void accept(T input) throws E, InterruptedException;