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

com.cedarsoft.async.CallbackCaller Maven / Gradle / Ivy

package com.cedarsoft.async;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/**
 * is able to call callbacks with several parameters
 */
public interface CallbackCaller {
  /**
   * Calls the callback
   *
   * @param callback the callback
   * @return the return value
   *
   * @throws Exception the exception that is thrown
   */
  @Nullable
  Object call( @NotNull T callback ) throws Exception;

  /**
   * Returns a description for the current callback caller.
   * Used for logging and debugging purposes.
   *
   * @return the description
   */
  @NotNull
  String getDescription();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy