org.opendaylight.serviceutils.metrics.function.InterruptibleCheckedConsumer 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;
import java.util.function.Consumer;
/**
* {@link Consumer} which can throw a checked exception and be interrupted.
*
* @param the type of the input to the operation
* @param the type of the Exception to the operation
*
* @see Consumer
*/
@FunctionalInterface
public interface InterruptibleCheckedConsumer {
void accept(T input) throws E, InterruptedException;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy