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

dev.restate.sdk.common.function.ThrowingSupplier Maven / Gradle / Ivy

The newest version!
// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH
//
// This file is part of the Restate Java SDK,
// which is released under the MIT license.
//
// You can find a copy of the license in file LICENSE in the root
// directory of this repository or package, or at
// https://github.com/restatedev/sdk-java/blob/main/LICENSE
package dev.restate.sdk.common.function;

/** Like {@link java.util.function.Supplier} but can throw checked exceptions. */
@FunctionalInterface
public interface ThrowingSupplier {

  /**
   * Get a result, potentially throwing an exception.
   *
   * @return a result
   */
  T get() throws Throwable;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy